Wrenches shouldn't rotate Levers

This commit is contained in:
CovertJaguar 2013-08-16 15:30:38 -07:00
parent 613af8c155
commit acd3eb1af4

View file

@ -18,7 +18,7 @@ public class ItemWrench extends ItemBuildCraft implements IToolWrench {
public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
int blockId = world.getBlockId(x, y, z);
Block block = Block.blocksList[blockId];
if (block != null && block.rotateBlock(world, x, y, z, ForgeDirection.getOrientation(side))) {
if (block != null && block.blockID != Block.lever.blockID && block.rotateBlock(world, x, y, z, ForgeDirection.getOrientation(side))) {
player.swingItem();
return !world.isRemote;
}