Skip to content

Commit

Permalink
Fix wrench interaction to not care about durability (#1155) (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltmilk authored Apr 27, 2024
1 parent c387e21 commit e429433
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,6 @@ public void onDrops(List<ItemStack> drops, Player entity) {
@Override
protected InteractionResult onWrenchClick(Player playerIn, InteractionHand hand, Direction gridSide, BlockHitResult hitResult) {
if (!playerIn.isShiftKeyDown() && !isRemote()) {
var tool = playerIn.getItemInHand(hand);
if (tool.getDamageValue() >= tool.getMaxDamage()) return InteractionResult.PASS;
if (hasFrontFacing() && gridSide == getFrontFacing()) return InteractionResult.PASS;

// important not to use getters here, which have different logic
Expand Down

0 comments on commit e429433

Please sign in to comment.