Skip to content

Commit

Permalink
1.4.0
Browse files Browse the repository at this point in the history
适配游戏0.4.0
  • Loading branch information
xiaoye97 committed Jun 15, 2022
1 parent c22fddc commit 6cbe028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CoreKeeperAutoFish/AutoFishPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ public static void AutoFish_Fishing_OnExitState_Patch()
}

[HarmonyPostfix, HarmonyPatch(typeof(PlayerState.Fishing), "PullUp")]
public static void AutoFish_Fishing_PullUp_Patch(bool failedThrow, bool spawnLoot)
public static void AutoFish_Fishing_PullUp_Patch(bool failedThrow)
{
if (AutoFish.EnableAutoThrow.Value)
{
if (!failedThrow && spawnLoot)
if (!failedThrow)
{
// 如果触发了这里,说明钓鱼成功,才可以继续抛竿,如果没触发这里就触发了OnExitState,说明中断
autoThrowPullUp = true;
Expand Down
2 changes: 1 addition & 1 deletion CoreKeeperAutoFish/AutoFishPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal class AutoFishPlugin : BasePlugin
public const string GUID = "me.xiaoye97.plugin.CoreKeeperAutoFish";
public const string NAME = "CoreKeeperAutoFish";
public const string AUTHOR = "xiaoye97";
public const string VERSION = "1.3.0";
public const string VERSION = "1.4.0";

public static AutoFishPlugin Inst { get; private set; }
public static ManualLogSource LogSource => Inst.Log;
Expand Down

0 comments on commit 6cbe028

Please sign in to comment.