From 5255f33a55043c96a670e6c962efaa177fdbc6bb Mon Sep 17 00:00:00 2001 From: LemADEC Date: Wed, 28 Dec 2016 20:45:04 +0100 Subject: [PATCH] Fixed #228 wrench rotating non-rotable blocks --- .../java/cr0s/warpdrive/block/BlockAbstractContainer.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java b/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java index 13376196..d53db514 100644 --- a/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java +++ b/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java @@ -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