diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-21 15:53:53 +0100 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-21 15:53:53 +0100 |
| commit | a7372158d4e75d7f32f0cbf607940499e767dbe5 (patch) | |
| tree | cba4d2f4e4ba6f6bf95b54e9e839bd40b2804824 /src/main/java/at/hannibal2/skyhanni/features/bazaar | |
| parent | 9c52cce10df4851f517d2c64a486ff90e49c8a2b (diff) | |
| download | skyhanni-a7372158d4e75d7f32f0cbf607940499e767dbe5.tar.gz skyhanni-a7372158d4e75d7f32f0cbf607940499e767dbe5.tar.bz2 skyhanni-a7372158d4e75d7f32f0cbf607940499e767dbe5.zip | |
Added Auction Highlighter.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bazaar')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt index 7f0e86598..bd9ef0a79 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt @@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.utils.InventoryUtils.getInventoryName import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.LorenzColor +import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.highlight import net.minecraft.client.gui.inventory.GuiChest import net.minecraft.inventory.ContainerChest @@ -23,8 +24,10 @@ class BazaarOrderHelper { @SubscribeEvent fun onBackgroundDrawn(event: GuiContainerEvent.BackgroundDrawnEvent) { + if (!LorenzUtils.inSkyBlock) return if (!SkyHanniMod.feature.bazaar.orderHelper) return if (event.gui !is GuiChest) return + val guiChest = event.gui val chest = guiChest.inventorySlots as ContainerChest val inventoryName = chest.getInventoryName() |
