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:
parent
829a60722c
commit
02d0e5e9ed
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue