Fixed #228 wrench rotating non-rotable blocks
This commit is contained in:
parent
ce8d5e3319
commit
5255f33a55
1 changed files with 5 additions and 2 deletions
|
@ -125,8 +125,11 @@ public abstract class BlockAbstractContainer extends BlockContainer implements I
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean rotateBlock(World world, int x, int y, int z, ForgeDirection axis) {
|
public boolean rotateBlock(World world, int x, int y, int z, ForgeDirection axis) {
|
||||||
world.setBlockMetadataWithNotify(x, y, z, axis.ordinal(), 3);
|
if (isRotating) {
|
||||||
return true;
|
world.setBlockMetadataWithNotify(x, y, z, axis.ordinal(), 3);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME untested
|
// FIXME untested
|
||||||
|
|
Loading…
Reference in a new issue