From 26b1a2abf90461f57a4e6c827ff24d10706cfb31 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Mon, 31 Mar 2014 22:24:28 -0500 Subject: [PATCH] Fixed Bug: #0267 - Improved Arbitrary rotation? --- items/tools/quartz/ToolQuartzWrench.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/items/tools/quartz/ToolQuartzWrench.java b/items/tools/quartz/ToolQuartzWrench.java index c5127f7d..7f96a00f 100644 --- a/items/tools/quartz/ToolQuartzWrench.java +++ b/items/tools/quartz/ToolQuartzWrench.java @@ -10,6 +10,7 @@ import net.minecraftforge.common.util.ForgeDirection; import appeng.api.implementations.items.IAEWrench; import appeng.core.features.AEFeature; import appeng.items.AEBaseItem; +import appeng.util.Platform; import buildcraft.api.tools.IToolWrench; import cpw.mods.fml.common.Optional.Interface; @@ -29,8 +30,10 @@ public class ToolQuartzWrench extends AEBaseItem implements IAEWrench, IToolWren Block b = world.getBlock( x, y, z ); if ( b != null && !player.isSneaking() ) { - if ( b.rotateBlock( world, x, y, z, ForgeDirection.getOrientation( side ) ) ) + ForgeDirection mySide = ForgeDirection.getOrientation( side ); + if ( b.rotateBlock( world, x, y, z, mySide ) ) { + b.onNeighborBlockChange( world, x, y, z, Platform.air ); player.swingItem(); return !world.isRemote; }