mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Fix yeta shift+leftclick not working in creative.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user