Skip to content

Commit

Permalink
Fix a bug that changes the NbtTagCombound of the original ItemStack i…
Browse files Browse the repository at this point in the history
…f it has capabilities (#423)
  • Loading branch information
Nedelosk authored and mezz committed Sep 10, 2016
1 parent 9bd0ee5 commit 92348d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mezz/jei/util/StackHelper.java
Expand Up @@ -384,7 +384,7 @@ public String getUniqueIdentifierForStack(@Nonnull ItemStack stack, @Nonnull Uid
itemKey.append(':').append(metadata);

NBTTagCompound serializedNbt = stack.serializeNBT();
NBTTagCompound nbtTagCompound = serializedNbt.getCompoundTag("tag");
NBTTagCompound nbtTagCompound = serializedNbt.getCompoundTag("tag").copy();
if (serializedNbt.hasKey("ForgeCaps")) {
if (nbtTagCompound == null) {
nbtTagCompound = new NBTTagCompound();
Expand Down

0 comments on commit 92348d7

Please sign in to comment.