Fixed #228 wrench rotating non-rotable blocks

This commit is contained in:
LemADEC 2016-12-28 20:45:04 +01:00
parent ce8d5e3319
commit 5255f33a55

View file

@ -125,8 +125,11 @@ public abstract class BlockAbstractContainer extends BlockContainer implements I
@Override
public boolean rotateBlock(World world, int x, int y, int z, ForgeDirection axis) {
world.setBlockMetadataWithNotify(x, y, z, axis.ordinal(), 3);
return true;
if (isRotating) {
world.setBlockMetadataWithNotify(x, y, z, axis.ordinal(), 3);
return true;
}
return false;
}
// FIXME untested