Ignore empty slot books in the lectern GUI

This commit is contained in:
Electroblob77
2020-04-09 23:18:23 +01:00
parent c418757042
commit 3ff6be4cb0
@@ -398,7 +398,7 @@ public class GuiLectern extends GuiSpellInfo implements ISpellSortable {
if(stack.getItem() instanceof ItemSpellBook){
Spell spell = Spell.byMetadata(stack.getMetadata());
if(!availableSpells.contains(spell)) availableSpells.add(spell);
if(spell != Spells.none && !availableSpells.contains(spell)) availableSpells.add(spell);
}
}
}