From cfd958eedc31e1e1cd5be3bfa186fec85952412d Mon Sep 17 00:00:00 2001 From: Gunging <48371009+Gunging@users.noreply.github.com> Date: Sun, 31 Oct 2021 12:51:04 -0500 Subject: [PATCH] Disable Stats can now show up in lore if you add them to lore-format.yml --- .../java/net/Indyuce/mmoitems/stat/type/DisableStat.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/net/Indyuce/mmoitems/stat/type/DisableStat.java b/src/main/java/net/Indyuce/mmoitems/stat/type/DisableStat.java index a8f2cf5d..64382801 100644 --- a/src/main/java/net/Indyuce/mmoitems/stat/type/DisableStat.java +++ b/src/main/java/net/Indyuce/mmoitems/stat/type/DisableStat.java @@ -20,10 +20,4 @@ public class DisableStat extends BooleanStat { public DisableStat(String id, Material material, String name, String[] types, String... lore) { super("DISABLE_" + id, material, name, lore, types); } - - @Override - public void whenApplied(@NotNull ItemStackBuilder item, @NotNull StatData data) { - if (((BooleanData) data).isEnabled()) - item.addItemTag(new ItemTag("MMOITEMS_" + getId(), true)); - } }