From 92348d7d98c3c7297ce169ead5d60a90c8d35e68 Mon Sep 17 00:00:00 2001 From: Nedelosk Date: Sat, 10 Sep 2016 22:43:41 +0200 Subject: [PATCH] Fix a bug that changes the NbtTagCombound of the original ItemStack if it has capabilities (#423) --- src/main/java/mezz/jei/util/StackHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/mezz/jei/util/StackHelper.java b/src/main/java/mezz/jei/util/StackHelper.java index 6ea44b7fe..1f5aa1b14 100644 --- a/src/main/java/mezz/jei/util/StackHelper.java +++ b/src/main/java/mezz/jei/util/StackHelper.java @@ -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();