From aa3ecfa5756db40693dfa21bca3b97a774b78afa Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Tue, 19 Aug 2014 00:05:05 -0500 Subject: [PATCH] Fixed Bug: #0926 - Vanilla levers cannot be flipped while holding Quartz Fixture --- fmp/FMPEvent.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fmp/FMPEvent.java b/fmp/FMPEvent.java index 07ac5743a..40750b1c1 100644 --- a/fmp/FMPEvent.java +++ b/fmp/FMPEvent.java @@ -72,7 +72,7 @@ public class FMPEvent if ( held.getItem() instanceof AEBaseItemBlock ) { AEBaseItemBlock ib = (AEBaseItemBlock) held.getItem(); - blk = Block.getBlockFromItem(ib); + blk = Block.getBlockFromItem( ib ); part = PartRegistry.getPartByBlock( blk, hit.sideHit ); } @@ -88,9 +88,9 @@ public class FMPEvent && block.onBlockActivated( world, hit.blockX, hit.blockY, hit.blockZ, player, hit.sideHit, (float) f.x, (float) f.y, (float) f.z ) ) { player.swingItem(); - PacketCustom.sendToServer(new C08PacketPlayerBlockPlacement( hit.blockX, hit.blockY, hit.blockZ, hit.sideHit, player.inventory.getCurrentItem(), (float) f.x, - (float) f.y, (float) f.z ) ); - return false; + PacketCustom.sendToServer( new C08PacketPlayerBlockPlacement( hit.blockX, hit.blockY, hit.blockZ, hit.sideHit, player.inventory + .getCurrentItem(), (float) f.x, (float) f.y, (float) f.z ) ); + return true; } }