diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-05-24 23:52:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 15:52:18 +0200 |
commit | 1b2325c3d4f52e20bdbe6b823106cd45025dac53 (patch) | |
tree | 1bae142b40edcfc980deca7c07f6d93e968566f4 /src/main/java/at/hannibal2/skyhanni/features/minion | |
parent | f7bc3f2f0786a15ce3082df4f8bb766d01b4c5ea (diff) | |
download | skyhanni-1b2325c3d4f52e20bdbe6b823106cd45025dac53.tar.gz skyhanni-1b2325c3d4f52e20bdbe6b823106cd45025dac53.tar.bz2 skyhanni-1b2325c3d4f52e20bdbe6b823106cd45025dac53.zip |
Backend: Use Skyhanni events (#1557)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/minion')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt index 7fa5700f0..aa9ce88e6 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt @@ -8,6 +8,7 @@ import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.data.ProfileStorageData import at.hannibal2.skyhanni.events.BlockClickEvent import at.hannibal2.skyhanni.events.EntityClickEvent +import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent import at.hannibal2.skyhanni.events.InventoryUpdatedEvent @@ -53,7 +54,6 @@ import net.minecraft.client.gui.inventory.GuiChest import net.minecraft.entity.EntityLivingBase import net.minecraft.entity.item.EntityArmorStand import net.minecraft.init.Blocks -import net.minecraftforge.client.event.GuiScreenEvent import net.minecraftforge.event.entity.player.PlayerInteractEvent import net.minecraftforge.fml.common.eventhandler.EventPriority import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -386,8 +386,8 @@ class MinionFeatures { private fun enableWithHub() = isEnabled() || IslandType.HUB.isInIsland() - @SubscribeEvent(priority = EventPriority.LOWEST) - fun renderOverlay(event: GuiScreenEvent.BackgroundDrawnEvent) { + @SubscribeEvent + fun onBackgroundDraw(event: GuiRenderEvent.ChestGuiOverlayRenderEvent) { if (!LorenzUtils.inSkyBlock) return if (!minionInventoryOpen) return |