From 86cefa9162996d151ec46c771cff684c38298b34 Mon Sep 17 00:00:00 2001 From: malte0811 Date: Sat, 19 Jan 2019 21:22:58 +0100 Subject: [PATCH] Fix a control panel dupe bug, closes #69 --- .../malte0811/industrialwires/crafting/RecipePanelTexture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/malte0811/industrialwires/crafting/RecipePanelTexture.java b/src/main/java/malte0811/industrialwires/crafting/RecipePanelTexture.java index 58ec10c..1b198bd 100644 --- a/src/main/java/malte0811/industrialwires/crafting/RecipePanelTexture.java +++ b/src/main/java/malte0811/industrialwires/crafting/RecipePanelTexture.java @@ -85,7 +85,7 @@ public class RecipePanelTexture extends IForgeRegistryEntry.Impl implem } assert texture != null && panel != null; NBTTagCompound texAsNBT = texture.serializeNBT(); - ItemStack ret = panel.copy(); + ItemStack ret = ApiUtils.copyStackWithAmount(panel, 1); if (ret.getTagCompound() == null) { ItemNBTHelper.setFloat(ret, NBTKeys.ANGLE, 0); ItemNBTHelper.setFloat(ret, NBTKeys.HEIGHT, .5F);