Skip to content

Commit

Permalink
Remove unnecessary calls and checks
Browse files Browse the repository at this point in the history
  • Loading branch information
snarkyerica committed Apr 24, 2024
1 parent 37616e2 commit 0be9d64
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ private void calculatePath(PlayerEntity player, double tickDelta) {

// Get item
ItemStack itemStack = player.getMainHandStack();
if (itemStack == null) itemStack = player.getOffHandStack();
if (itemStack == null) return;
if (!items.get().contains(itemStack.getItem())) {
itemStack = player.getOffHandStack();
if (!items.get().contains(itemStack.getItem())) return;
Expand Down

0 comments on commit 0be9d64

Please sign in to comment.