fix last facade on off hand deleting the item on the main hand when used
fixes #101
This commit is contained in:
@@ -177,7 +177,7 @@ public class PartPlacement
|
|||||||
;
|
;
|
||||||
if( held.getCount() == 0 )
|
if( held.getCount() == 0 )
|
||||||
{
|
{
|
||||||
player.inventory.mainInventory.set( player.inventory.currentItem, ItemStack.EMPTY );
|
player.setHeldItem( hand, ItemStack.EMPTY );
|
||||||
MinecraftForge.EVENT_BUS.post( new PlayerDestroyItemEvent( player, held, hand ) );
|
MinecraftForge.EVENT_BUS.post( new PlayerDestroyItemEvent( player, held, hand ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user