mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45: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:
parent
d4a06ceb90
commit
24f09bc87a
@ -403,7 +403,7 @@ public class SlimefunSetup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (craft) {
|
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 (Slimefun.hasUnlocked(p, adding, true)) {
|
||||||
if (InvUtils.fits(inv, adding)) {
|
if (InvUtils.fits(inv, adding)) {
|
||||||
for (ItemStack removing: inputs.get(i)) {
|
for (ItemStack removing: inputs.get(i)) {
|
||||||
@ -752,7 +752,7 @@ public class SlimefunSetup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (craft) {
|
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 (Slimefun.hasUnlocked(p, adding, true)) {
|
||||||
if (InvUtils.fits(inv, adding)) {
|
if (InvUtils.fits(inv, adding)) {
|
||||||
for (ItemStack removing: inputs.get(i)) {
|
for (ItemStack removing: inputs.get(i)) {
|
||||||
@ -1196,7 +1196,7 @@ public class SlimefunSetup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (craft) {
|
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 (Slimefun.hasUnlocked(p, adding, true)) {
|
||||||
Inventory inv2 = Bukkit.createInventory(null, 9, "test");
|
Inventory inv2 = Bukkit.createInventory(null, 9, "test");
|
||||||
for (int j = 0; j < inv.getContents().length; j++) {
|
for (int j = 0; j < inv.getContents().length; j++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user