Fix not being able to break conduits with a wrench in creative

This commit is contained in:
tterrag1098 committed 2015-08-29 20:10:06 -04:00
1 parent 880801a316
commit f3af999ef2
1 file changed
+1 -1
@@ -133,7 +133,7 @@ public class ItemYetaWrench extends Item implements ITool, IConduitControl, IAdv
@Override
public boolean onBlockStartBreak(ItemStack itemstack, int x, int y, int z, EntityPlayer player) {
Block block = player.worldObj.getBlock(x, y, z);
if (block == EnderIO.blockConduitBundle && player.capabilities.isCreativeMode) {
if (player.isSneaking() && block == EnderIO.blockConduitBundle && player.capabilities.isCreativeMode) {
block.onBlockClicked(player.worldObj, x, y, z, player);
return true;
}