Fix yeta shift+leftclick not working in creative.

This commit is contained in:
tterrag1098 committed 2015-07-23 00:26:30 -04:00
1 parent cca35bcbf0
commit 1e46da8afa
1 file changed
+5 -1
@@ -133,7 +133,11 @@ 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);
return block == EnderIO.blockConduitBundle && player.capabilities.isCreativeMode;
if (block == EnderIO.blockConduitBundle && player.capabilities.isCreativeMode) {
block.onBlockClicked(player.worldObj, x, y, z, player);
return true;
}
return false;
}
@Override