aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-10 00:18:00 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-10 00:18:00 +0200
commit1b2d652e0547b324e57bff2e00ddccce278374b5 (patch)
treed2c1179d13ed65e4f3022957992824d804c13888
parent1b44cd4c8459b10b8acaeebb47447e95b332a25f (diff)
downloadveloxcaelo-1b2d652e0547b324e57bff2e00ddccce278374b5.tar.gz
veloxcaelo-1b2d652e0547b324e57bff2e00ddccce278374b5.tar.bz2
veloxcaelo-1b2d652e0547b324e57bff2e00ddccce278374b5.zip
Bump version1.0.1
-rw-r--r--build.gradle.kts2
-rw-r--r--src/main/java/moe/nea/caelo/Caelo.kt62
-rw-r--r--src/main/resources/mcmod.info2
3 files changed, 33 insertions, 33 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 7b2378b..37fa98a 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -9,7 +9,7 @@ plugins {
}
group = "moe.nea"
-version = "1.0-SNAPSHOT"
+version = "1.0.1"
repositories {
maven("https://jitpack.io")
diff --git a/src/main/java/moe/nea/caelo/Caelo.kt b/src/main/java/moe/nea/caelo/Caelo.kt
index f39a08e..99d2999 100644
--- a/src/main/java/moe/nea/caelo/Caelo.kt
+++ b/src/main/java/moe/nea/caelo/Caelo.kt
@@ -15,39 +15,39 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import net.minecraftforge.fml.common.gameevent.TickEvent
import net.minecraftforge.fml.common.gameevent.TickEvent.ClientTickEvent
-@Mod(modid = "veloxcaelo", useMetadata = true)
+@Mod(modid = "veloxcaelo", useMetadata = true, version = "1.0.1")
class Caelo {
- @SubscribeEvent
- fun onTick(tick: ClientTickEvent) {
- if (tick.phase != TickEvent.Phase.END)
- return
- if (Minecraft.getMinecraft().thePlayer == null)
- return
- MinecraftForge.EVENT_BUS.post(NeaTickEvent(tickCount++))
- if (toOpen != null) {
- Minecraft.getMinecraft().displayGuiScreen(toOpen)
- toOpen = null
- }
- }
+ @SubscribeEvent
+ fun onTick(tick: ClientTickEvent) {
+ if (tick.phase != TickEvent.Phase.END)
+ return
+ 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
- }
+ companion object {
+ var toOpen: GuiScreen? = null
+ }
- var tickCount = 0
+ var tickCount = 0
- @Mod.EventHandler
- fun onInit(event: FMLInitializationEvent) {
- if (InterModUtil.isOptifineLoaded) {
- MinecraftForge.EVENT_BUS.register(OptifineCustomItemCache)
- }
- MinecraftForge.EVENT_BUS.register(this)
- ClientCommandHandler.instance.registerCommand(CaeloCommand)
- CaeloCommand.subcommand("mixins") { args ->
- MC.display("Injected mixins:")
- MixinPlugin.loadedMixinClasses.forEach {
- MC.display(" - $it")
- }
- }
- }
+ @Mod.EventHandler
+ fun onInit(event: FMLInitializationEvent) {
+ if (InterModUtil.isOptifineLoaded) {
+ MinecraftForge.EVENT_BUS.register(OptifineCustomItemCache)
+ }
+ MinecraftForge.EVENT_BUS.register(this)
+ ClientCommandHandler.instance.registerCommand(CaeloCommand)
+ CaeloCommand.subcommand("mixins") { args ->
+ MC.display("Injected mixins:")
+ MixinPlugin.loadedMixinClasses.forEach {
+ MC.display(" - $it")
+ }
+ }
+ }
} \ No newline at end of file
diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info
index 90f1bf6..25ed1e7 100644
--- a/src/main/resources/mcmod.info
+++ b/src/main/resources/mcmod.info
@@ -3,7 +3,7 @@
"modid": "veloxcaelo",
"name": "Velox Caelo",
"description": "The sky is not the limit",
- "version": "1.0.0",
+ "version": "1.0.1",
"mcversion": "1.8.9",
"authorList": [
"Linnea Gräf"