1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Fixes soulbound backpack craft crafting

Also a few more .clones() were added as a precaution for the future.
This commit is contained in:
VoidAngel 2018-05-21 12:38:42 -07:00
parent d4a06ceb90
commit 24f09bc87a

View File

@ -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++) {