Fixed Bug: #0926 - Vanilla levers cannot be flipped while holding Quartz Fixture
This commit is contained in:
+4
-4
@@ -72,7 +72,7 @@ public class FMPEvent
|
|||||||
if ( held.getItem() instanceof AEBaseItemBlock )
|
if ( held.getItem() instanceof AEBaseItemBlock )
|
||||||
{
|
{
|
||||||
AEBaseItemBlock ib = (AEBaseItemBlock) held.getItem();
|
AEBaseItemBlock ib = (AEBaseItemBlock) held.getItem();
|
||||||
blk = Block.getBlockFromItem(ib);
|
blk = Block.getBlockFromItem( ib );
|
||||||
part = PartRegistry.getPartByBlock( blk, hit.sideHit );
|
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 ) )
|
&& block.onBlockActivated( world, hit.blockX, hit.blockY, hit.blockZ, player, hit.sideHit, (float) f.x, (float) f.y, (float) f.z ) )
|
||||||
{
|
{
|
||||||
player.swingItem();
|
player.swingItem();
|
||||||
PacketCustom.sendToServer(new C08PacketPlayerBlockPlacement( hit.blockX, hit.blockY, hit.blockZ, hit.sideHit, player.inventory.getCurrentItem(), (float) f.x,
|
PacketCustom.sendToServer( new C08PacketPlayerBlockPlacement( hit.blockX, hit.blockY, hit.blockZ, hit.sideHit, player.inventory
|
||||||
(float) f.y, (float) f.z ) );
|
.getCurrentItem(), (float) f.x, (float) f.y, (float) f.z ) );
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user