diff --git a/common/buildcraft/transport/stripes/StripesHandlerEntityInteract.java b/common/buildcraft/transport/stripes/StripesHandlerEntityInteract.java index fa9a8549..804cab4e 100644 --- a/common/buildcraft/transport/stripes/StripesHandlerEntityInteract.java +++ b/common/buildcraft/transport/stripes/StripesHandlerEntityInteract.java @@ -69,6 +69,8 @@ public class StripesHandlerEntityInteract implements IStripesHandler { activator.sendItem(stack, direction.getOpposite()); } + player.setCurrentItemOrArmor(0, null); + return successful; } diff --git a/common/buildcraft/transport/stripes/StripesHandlerShears.java b/common/buildcraft/transport/stripes/StripesHandlerShears.java index 05bd2651..073a4b63 100644 --- a/common/buildcraft/transport/stripes/StripesHandlerShears.java +++ b/common/buildcraft/transport/stripes/StripesHandlerShears.java @@ -40,8 +40,12 @@ public class StripesHandlerShears implements IStripesHandler { List drops = shearableBlock.onSheared(stack, world, x, y, z, EnchantmentHelper.getEnchantmentLevel(Enchantment.fortune.effectId, stack)); world.setBlockToAir(x, y, z); - stack.damageItem(1, player); - activator.sendItem(stack, direction.getOpposite()); + if (stack.attemptDamageItem(1, player.getRNG())) { + stack.stackSize--; + } + if (stack.stackSize > 0) { + activator.sendItem(stack, direction.getOpposite()); + } for (ItemStack dropStack : drops) { activator.sendItem(dropStack, direction.getOpposite()); }