mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Merge pull request #706 from VoidAngel/master
Fixes soulbound backpack crafting
This commit is contained in:
commit
40cbafa504
@ -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