aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/caelo/Caelo.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-03-31 22:08:44 +0200
committerLinnea Gräf <nea@nea.moe>2024-03-31 22:08:44 +0200
commit8d32601d891cefe11e3e261343e84aab1a40c341 (patch)
tree4ec227b83fe4538cab72abe1648691e2cc48d149 /src/main/java/moe/nea/caelo/Caelo.kt
parent0414b87e02e51b51cf9ef0c165e5ed61e5193160 (diff)
downloadveloxcaelo-8d32601d891cefe11e3e261343e84aab1a40c341.tar.gz
veloxcaelo-8d32601d891cefe11e3e261343e84aab1a40c341.tar.bz2
veloxcaelo-8d32601d891cefe11e3e261343e84aab1a40c341.zip
Add config ui
Diffstat (limited to 'src/main/java/moe/nea/caelo/Caelo.kt')
-rw-r--r--src/main/java/moe/nea/caelo/Caelo.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/caelo/Caelo.kt b/src/main/java/moe/nea/caelo/Caelo.kt
index 76e56bf..f39a08e 100644
--- a/src/main/java/moe/nea/caelo/Caelo.kt
+++ b/src/main/java/moe/nea/caelo/Caelo.kt
@@ -6,6 +6,7 @@ import moe.nea.caelo.optifine.OptifineCustomItemCache
import moe.nea.caelo.util.InterModUtil
import moe.nea.caelo.util.MC
import net.minecraft.client.Minecraft
+import net.minecraft.client.gui.GuiScreen
import net.minecraftforge.client.ClientCommandHandler
import net.minecraftforge.common.MinecraftForge
import net.minecraftforge.fml.common.Mod
@@ -23,6 +24,14 @@ class Caelo {
if (Minecraft.getMinecraft().thePlayer == null)
return
MinecraftForge.EVENT_BUS.post(NeaTickEvent(tickCount++))
+ if (toOpen != null) {
+ Minecraft.getMinecraft().displayGuiScreen(toOpen)
+ toOpen = null
+ }
+ }
+
+ companion object {
+ var toOpen: GuiScreen? = null
}
var tickCount = 0