From 24f09bc87a3e45a72a83ef4115c660a066cc6051 Mon Sep 17 00:00:00 2001 From: VoidAngel Date: Mon, 21 May 2018 12:38:42 -0700 Subject: [PATCH] Fixes soulbound backpack craft crafting Also a few more .clones() were added as a precaution for the future. --- src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java b/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java index 2a07703d5..f7173b848 100644 --- a/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java +++ b/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java @@ -403,7 +403,7 @@ public class SlimefunSetup { } if (craft) { - final ItemStack adding = RecipeType.getRecipeOutputList(machine, inputs.get(i)); + final ItemStack adding = RecipeType.getRecipeOutputList(machine, inputs.get(i)).clone(); if (Slimefun.hasUnlocked(p, adding, true)) { if (InvUtils.fits(inv, adding)) { for (ItemStack removing: inputs.get(i)) { @@ -752,7 +752,7 @@ public class SlimefunSetup { } if (craft) { - ItemStack adding = RecipeType.getRecipeOutputList(machine, inputs.get(i)); + ItemStack adding = RecipeType.getRecipeOutputList(machine, inputs.get(i)).clone(); if (Slimefun.hasUnlocked(p, adding, true)) { if (InvUtils.fits(inv, adding)) { for (ItemStack removing: inputs.get(i)) { @@ -1196,7 +1196,7 @@ public class SlimefunSetup { } if (craft) { - final ItemStack adding = RecipeType.getRecipeOutputList(machine, inputs.get(i)); + final ItemStack adding = RecipeType.getRecipeOutputList(machine, inputs.get(i)).clone(); if (Slimefun.hasUnlocked(p, adding, true)) { Inventory inv2 = Bukkit.createInventory(null, 9, "test"); for (int j = 0; j < inv.getContents().length; j++) {