Fix Crafting with items that randomly add NBT Data when you look at them.

This commit is contained in:
AlgorithmX2
2014-08-20 23:02:31 -05:00
parent 0c74b0fe0f
commit e7a391fa43
4 changed files with 17 additions and 15 deletions
@@ -58,8 +58,13 @@ public class PacketInventoryAction extends AppEngPacket
if ( sender.openContainer instanceof ContainerCraftAmount )
{
ContainerCraftAmount cca = (ContainerCraftAmount) sender.openContainer;
if ( aebc.getTargetStack() != null )
{
cca.craftingItem.putStack( aebc.getTargetStack().getItemStack() );
cca.whatToMake = aebc.getTargetStack();
}
cca.detectAndSendChanges();
}
}