Fix item deletion in creative menu for items that are the same id/meta but differnet NBT's. Closes #479

This commit is contained in:
LexManos authored and Christian committed 2013-04-10 18:30:24 -04:00
1 parent 829a60722c
commit 02d0e5e9ed
1 file changed
+9
@@ -9,6 +9,15 @@
public GuiContainerCreative(EntityPlayer par1EntityPlayer)
{
@@ -196,7 +198,7 @@
return;
}
- if (itemstack != null && itemstack2 != null && itemstack.isItemEqual(itemstack2))
+ if (itemstack != null && itemstack2 != null && itemstack.isItemEqual(itemstack2) && ItemStack.areItemStackTagsEqual(itemstack, itemstack2)) //Forge: Bugfix, Compare NBT data, allow for deletion of enchanted books, MC-12770
{
if (par3 == 0)
{
@@ -274,6 +276,13 @@
this.setCurrentCreativeTab(CreativeTabs.creativeTabArray[i]);
this.field_82324_x = new CreativeCrafting(this.mc);