Wrenches shouldn't rotate Levers
This commit is contained in:
parent
613af8c155
commit
acd3eb1af4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue