Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,11 @@ public IUpgradeInventory getUpgrades() {
}

public class FilteredInventory implements IAEItemFilter {
private static final Set<Integer> EXTRACT_SLOTS = Set.of(3, 7, 11);

@Override
public boolean allowExtract(InternalInventory inv, int slot, int amount) {
return slot == 3;
return EXTRACT_SLOTS.contains(slot);
}

@Override
Expand All @@ -330,13 +332,13 @@ public boolean allowInsert(InternalInventory inv, int slot, ItemStack stack) {
return false;
}
switch(slot) {
case 0 -> {
case 0, 4, 8 -> {
return recipe.getFlawlessCrystal().test(stack) || recipe.getFlawedCrystal().test(stack);
}
case 1 -> {
case 1, 5, 9 -> {
return recipe.getChippedCrystal().test(stack);
}
case 2 -> {
case 2, 6, 10 -> {
return recipe.getDamagedCrystal().test(stack);
}
default -> {
Expand Down
Loading