Skip to content

Commit bca007c

Browse files
committed
update Automate for the new CrabPot.NeedsBait method
1 parent 9e54e1b commit bca007c

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

Automate/Framework/Machines/Objects/CrabPotMachine.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public override MachineState GetState()
4343
{
4444
MachineState state = this.GetGenericState();
4545

46-
if (state == MachineState.Empty && (this.Machine.bait.Value != null || !this.PlayerNeedsBait(this.GetOwner())))
46+
if (state == MachineState.Empty && !this.Machine.NeedsBait(null))
4747
state = MachineState.Processing;
4848

4949
return state;
@@ -135,11 +135,4 @@ private void Reset(Item item)
135135
pot.shake = Vector2.Zero;
136136
pot.shakeTimer = 0f;
137137
}
138-
139-
/// <summary>Get whether the current player needs to bait crab pots.</summary>
140-
/// <param name="owner">The player who owns the machine.</param>
141-
private bool PlayerNeedsBait(Farmer owner)
142-
{
143-
return !owner.professions.Contains(Farmer.mariner); // no bait needed if luremaster
144-
}
145138
}

0 commit comments

Comments
 (0)