From 4407ee1bf2d6dfc8946c27b23b20063028de8ce2 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 27 Dec 2020 00:12:15 +0900 Subject: o --- .../kr/syeyoung/dungeonsguide/eventlistener/ItemGuiListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/eventlistener/ItemGuiListener.java b/src/main/java/kr/syeyoung/dungeonsguide/eventlistener/ItemGuiListener.java index ba7499db..561ba81c 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/eventlistener/ItemGuiListener.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/eventlistener/ItemGuiListener.java @@ -2,6 +2,7 @@ package kr.syeyoung.dungeonsguide.eventlistener; import kr.syeyoung.dungeonsguide.config.Config; import kr.syeyoung.dungeonsguide.e; +import kr.syeyoung.dungeonsguide.features.FeatureRegistry; import kr.syeyoung.dungeonsguide.utils.AhUtils; import kr.syeyoung.dungeonsguide.utils.TextUtils; import net.minecraft.item.ItemStack; @@ -15,7 +16,7 @@ public class ItemGuiListener { @SubscribeEvent public void dungeonTooltip(ItemTooltipEvent event) { if (!e.getDungeonsGuide().getSkyblockStatus().isOnSkyblock()) return; - if (!Config.itemtooltip_dungeonstat) return; + if (!FeatureRegistry.TOOLTIP_DUNGEONSTAT.isEnabled()) return; ItemStack hoveredItem = event.itemStack; NBTTagCompound compound = hoveredItem.getTagCompound(); @@ -36,7 +37,7 @@ public class ItemGuiListener { @SubscribeEvent public void priceTooltip(ItemTooltipEvent event) { if (!e.getDungeonsGuide().getSkyblockStatus().isOnSkyblock()) return; - if (!Config.itemtooltip_price) return; + if (!FeatureRegistry.TOOLTIP_PRICE.isEnabled()) return; ItemStack hoveredItem = event.itemStack; NBTTagCompound compound = hoveredItem.getTagCompound(); -- cgit