Skip to content

Commit

Permalink
Fix Dank Storage item removal when placing cables, Closes #1332
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Apr 7, 2024
1 parent d12a3bd commit d5eeff5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ protected boolean attempItemUseTarget(UseOnContext context, BlockPos pos, Direct
protected void afterItemUse(UseOnContext context, BlockPos pos, BlockCable blockCable, boolean calledSuper) {
if(!calledSuper) {
playPlaceSound(context.getLevel(), pos);
context.getItemInHand().shrink(1);
if (context.getItemInHand().getItem() == RegistryEntries.ITEM_CABLE) {
context.getItemInHand().shrink(1);
}
}
blockCable.setDisableCollisionBox(false);
}
Expand Down

0 comments on commit d5eeff5

Please sign in to comment.