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 2013-04-04 18:48:34 -07:00 committed by Christian
parent 829a60722c
commit 02d0e5e9ed
1 changed files with 9 additions and 0 deletions

View File

@ -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);