mirror of
https://github.com/BlazingGames/blazing-games-plugin.git
synced 2025-02-03 21:26:41 -05:00
forgot to account for all errors
This commit is contained in:
parent
8642ae7234
commit
f124798e1b
2 changed files with 2 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue