From 3ff6be4cb0689ef31d014262012798ad59f3d22f Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Thu, 9 Apr 2020 23:18:23 +0100 Subject: [PATCH] Ignore empty slot books in the lectern GUI --- src/main/java/electroblob/wizardry/client/gui/GuiLectern.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/client/gui/GuiLectern.java b/src/main/java/electroblob/wizardry/client/gui/GuiLectern.java index ee6ff187..188329ee 100644 --- a/src/main/java/electroblob/wizardry/client/gui/GuiLectern.java +++ b/src/main/java/electroblob/wizardry/client/gui/GuiLectern.java @@ -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); } } }