forgot to account for all errors

This commit is contained in:
XTerPL 2025-01-23 01:22:27 +01:00
parent 8642ae7234
commit f124798e1b
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ public class AltarInterface extends UserInterface {
Set<EnchantmentWrapper> result = EnchantmentWrappers.list();
result.removeIf((wrapper) -> wrapper.maxLevelAvailableInAltar(tier) <= 0);
result.removeIf((wrapper) -> wrapper.getRecipe(1).tier() > tier);
if(altars != null) {
for(ItemStack tome : altars.values()) {

View file

@ -81,7 +81,7 @@ public class EnchantmentSlot implements UserInterfaceSlot {
return false;
}
if(level >= wrapper.maxLevelAvailableInAltar(altarInterface.getTier())) {
if(altarInterface.getTier() < wrapper.getRecipe(level).tier()) {
return false;
}