aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/GuiData.kt
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-06-05 22:32:03 +1000
committerGitHub <noreply@github.com>2024-06-05 14:32:03 +0200
commit406eaec8bd9e7ca630d1f79ffe2ddda8493778eb (patch)
tree1a3688b0629a924908476dc4787221596e92a0a4 /src/main/java/at/hannibal2/skyhanni/data/GuiData.kt
parente61f260fa2a094a43ebe1ab3d3305874dee6b716 (diff)
downloadskyhanni-406eaec8bd9e7ca630d1f79ffe2ddda8493778eb.tar.gz
skyhanni-406eaec8bd9e7ca630d1f79ffe2ddda8493778eb.tar.bz2
skyhanni-406eaec8bd9e7ca630d1f79ffe2ddda8493778eb.zip
Fix: Crash and use less forge events (#1986)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/GuiData.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/GuiData.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuiData.kt b/src/main/java/at/hannibal2/skyhanni/data/GuiData.kt
index c0cd46365..94c43ac06 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/GuiData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/GuiData.kt
@@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.events.GuiContainerEvent
import at.hannibal2.skyhanni.events.InventoryCloseEvent
import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent
import at.hannibal2.skyhanni.events.NEURenderEvent
+import at.hannibal2.skyhanni.events.minecraft.ClientDisconnectEvent
import at.hannibal2.skyhanni.utils.DelayedRun
import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld
import io.github.moulberry.notenoughupdates.NEUApi
@@ -13,7 +14,6 @@ import net.minecraftforge.client.event.GuiOpenEvent
import net.minecraftforge.client.event.GuiScreenEvent
import net.minecraftforge.fml.common.eventhandler.EventPriority
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
-import net.minecraftforge.fml.common.network.FMLNetworkEvent
import org.lwjgl.input.Keyboard
object GuiData {
@@ -59,7 +59,7 @@ object GuiData {
}
@SubscribeEvent
- fun onDisconnect(event: FMLNetworkEvent.ClientDisconnectionFromServerEvent) {
+ fun onDisconnect(event: ClientDisconnectEvent) {
preDrawEventCanceled = false
}