Skip to content

Commit

Permalink
Fixed ArrowUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Jul 22, 2021
1 parent 214308d commit 16d146d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eco-api/src/main/java/com/willfp/eco/util/ArrowUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public ItemStack getBow(@NotNull final Arrow arrow) {
return null;
}

if (!(values.get(0) instanceof ItemStack)) {
if (!(values.get(0).value() instanceof ItemStack)) {
return null;
}

return (ItemStack) values.get(0);
return (ItemStack) values.get(0).value();
}
}

0 comments on commit 16d146d

Please sign in to comment.