Skip to content

Commit

Permalink
Attempted fix for uncraftable unpatentabilium
Browse files Browse the repository at this point in the history
  • Loading branch information
Seggan committed Jun 14, 2021
1 parent 32f6544 commit 5210dc9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;

import javax.annotation.Nonnull;
import java.util.List;
import java.util.function.Function;
import javax.annotation.Nonnull;

/**
* This is a multiblock machine for crafting materials. Heavily influenced by the
Expand Down Expand Up @@ -104,7 +104,7 @@ public void onInteract(Player p, Block b) {

private boolean isCraftable(Inventory inv, ItemStack[] recipe) {
for (int j = 0; j < inv.getContents().length; j++) {
if (!SlimefunUtils.isItemSimilar(inv.getContents()[j], recipe[j], true)) {
if (!SlimefunUtils.isItemSimilar(inv.getContents()[j], recipe[j], true, false)) {
return false;
}
}
Expand Down

0 comments on commit 5210dc9

Please sign in to comment.