Skip to content

Commit

Permalink
Revert "[Fix] Minor syntax change."
Browse files Browse the repository at this point in the history
This reverts commit f846c7b.
  • Loading branch information
arannya committed May 11, 2024
1 parent 5c1abe5 commit ea72b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Farmtronics/Bot/BotObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public bool UseBattery() {
if (farmer == null || inventory == null || farmer.CurrentTool == null)
return false;

if (farmer.Items.Any(b => b != null && b.QualifiedItemId.Equals("(O)787")))
if (farmer.Items.Any(b => b is not null && b.QualifiedItemId.Equals("(O)787")))
{
farmer.stamina = Math.Min(Farmer.startingStamina, farmer.stamina + 100);
farmer.removeFirstOfThisItemFromInventory("(O)787");
Expand Down

0 comments on commit ea72b7f

Please sign in to comment.