Fix a control panel dupe bug, closes #69

This commit is contained in:
malte0811 2019-01-19 21:22:58 +01:00
parent 7c62332b57
commit 86cefa9162

View file

@ -85,7 +85,7 @@ public class RecipePanelTexture extends IForgeRegistryEntry.Impl<IRecipe> 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);