summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/mixins
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-12-29 03:35:25 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-12-29 03:35:25 +0100
commit17acdec98dc6af6558a11f94ccd825901e9594b6 (patch)
treee6df6548c49a1c3687dc745036648b5fecfcea3a /src/main/java/at/hannibal2/skyhanni/mixins
parent3d8da1877afce737c7c924c0da80470247b927a7 (diff)
downloadskyhanni-17acdec98dc6af6558a11f94ccd825901e9594b6.tar.gz
skyhanni-17acdec98dc6af6558a11f94ccd825901e9594b6.tar.bz2
skyhanni-17acdec98dc6af6558a11f94ccd825901e9594b6.zip
renamed event names
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderItemHook.kt2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt
index f8e0e225a..cfdff8a73 100644
--- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt
+++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt
@@ -29,11 +29,11 @@ class GuiContainerHook(guiAny: Any) {
}
fun onDrawSlot(slot: Slot, ci: CallbackInfo) {
- if (GuiContainerEvent.DrawSlotEvent.Pre(gui, gui.inventorySlots, slot).postAndCatch()) ci.cancel()
+ if (GuiContainerEvent.DrawSlotEvent.GuiContainerDrawSlotPre(gui, gui.inventorySlots, slot).postAndCatch()) ci.cancel()
}
fun onDrawSlotPost(slot: Slot, ci: CallbackInfo) {
- GuiContainerEvent.DrawSlotEvent.Post(gui, gui.inventorySlots, slot).postAndCatch()
+ GuiContainerEvent.DrawSlotEvent.GuiContainerDrawSlotPost(gui, gui.inventorySlots, slot).postAndCatch()
}
fun onMouseClick(slot: Slot?, slotId: Int, clickedButton: Int, clickType: Int, ci: CallbackInfo) {
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderItemHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderItemHook.kt
index 48d98fb5d..b94fad0d2 100644
--- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderItemHook.kt
+++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderItemHook.kt
@@ -19,7 +19,7 @@ fun renderItemOverlayPost(
text: String?,
ci: CallbackInfo
) {
- GuiRenderItemEvent.RenderOverlayEvent.Post(
+ GuiRenderItemEvent.RenderOverlayEvent.GuiRenderItemPost(
fr,
stack,
xPosition,