Skip to content

Commit

Permalink
Update Looting to not use Mouse if KeyboardOnly is set
Browse files Browse the repository at this point in the history
  • Loading branch information
lionaneesh authored Dec 2, 2024
1 parent 4beffa6 commit a3a01d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Core/Goals/LootGoal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ private bool TryLoot()
return true;
}
}

return LootMouse();
if (!input.KeyboardOnly) {
return LootMouse();
}
return false;
}

private void HandleSuccessfulLoot()
Expand Down Expand Up @@ -452,4 +454,4 @@ private void LogWarning(string text)
static partial void LogKeyboardLootFailed(ILogger logger, bool hasTarget);

#endregion
}
}

0 comments on commit a3a01d0

Please sign in to comment.