Ignore empty slot books in the lectern GUI
This commit is contained in:
@@ -398,7 +398,7 @@ public class GuiLectern extends GuiSpellInfo implements ISpellSortable {
|
|||||||
|
|
||||||
if(stack.getItem() instanceof ItemSpellBook){
|
if(stack.getItem() instanceof ItemSpellBook){
|
||||||
Spell spell = Spell.byMetadata(stack.getMetadata());
|
Spell spell = Spell.byMetadata(stack.getMetadata());
|
||||||
if(!availableSpells.contains(spell)) availableSpells.add(spell);
|
if(spell != Spells.none && !availableSpells.contains(spell)) availableSpells.add(spell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user