From f95819cf3716435d2a6167d03784bd9226c3e386 Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Tue, 9 Jun 2020 17:43:39 +0100 Subject: [PATCH] Only show new spell message in survival with discovery mode on --- src/main/java/electroblob/wizardry/item/ItemSpellBook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/item/ItemSpellBook.java b/src/main/java/electroblob/wizardry/item/ItemSpellBook.java index 2a2435ab..1a8cff66 100644 --- a/src/main/java/electroblob/wizardry/item/ItemSpellBook.java +++ b/src/main/java/electroblob/wizardry/item/ItemSpellBook.java @@ -87,7 +87,7 @@ public class ItemSpellBook extends Item { // If the spell should *appear* discovered but isn't *actually* discovered, show a 'new spell' message // A bit annoying to check this again but it's the easiest way - if(discovered && WizardData.get(player) != null && !WizardData.get(player).hasSpellBeenDiscovered(spell)){ + if(Wizardry.settings.discoveryMode && !player.isCreative() && discovered && WizardData.get(player) != null && !WizardData.get(player).hasSpellBeenDiscovered(spell)){ tooltip.add(Wizardry.proxy.translate("item." + this.getRegistryName() + ".new", new Style().setColor(TextFormatting.LIGHT_PURPLE))); }