diff options
author | syeyoung <cyong06@naver.com> | 2020-12-27 00:12:15 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2020-12-27 00:12:15 +0900 |
commit | 4407ee1bf2d6dfc8946c27b23b20063028de8ce2 (patch) | |
tree | 6eaa16b63b6c6bf79a410f261e32ac4ba02d49db /src/main/java/kr | |
parent | 1a9e56df1b9fba821b2c7019a3f47694d765e74f (diff) | |
download | Skyblock-Dungeons-Guide-4407ee1bf2d6dfc8946c27b23b20063028de8ce2.tar.gz Skyblock-Dungeons-Guide-4407ee1bf2d6dfc8946c27b23b20063028de8ce2.tar.bz2 Skyblock-Dungeons-Guide-4407ee1bf2d6dfc8946c27b23b20063028de8ce2.zip |
o
Diffstat (limited to 'src/main/java/kr')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/eventlistener/ItemGuiListener.java | 5 |
1 files changed, 3 insertions, 2 deletions
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(); |