diff options
Diffstat (limited to 'src/main/kotlin/dulkirmod/DulkirMod.kt')
-rw-r--r-- | src/main/kotlin/dulkirmod/DulkirMod.kt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/kotlin/dulkirmod/DulkirMod.kt b/src/main/kotlin/dulkirmod/DulkirMod.kt index 8f1be1c..738f133 100644 --- a/src/main/kotlin/dulkirmod/DulkirMod.kt +++ b/src/main/kotlin/dulkirmod/DulkirMod.kt @@ -37,7 +37,8 @@ import kotlin.coroutines.EmptyCoroutineContext ) class DulkirMod { - var lastLongUpdate : Long = 0 + var lastLongUpdate: Long = 0 + @Mod.EventHandler fun preInit(event: FMLPreInitializationEvent) { val directory = File(event.modConfigurationDirectory, "dulkirmod") @@ -46,7 +47,7 @@ class DulkirMod { // REGISTER COMMANDS HERE // Help Commands ClientCommandHandler.instance.registerCommand(HelpCommand()) - // General + // General ClientCommandHandler.instance.registerCommand(EnchantRuneCommand()) ClientCommandHandler.instance.registerCommand(FairyCommand()) ClientCommandHandler.instance.registerCommand(SettingsCommand()) @@ -87,7 +88,7 @@ class DulkirMod { } var longupdate = false - val currTime : Long = System.currentTimeMillis() + val currTime: Long = System.currentTimeMillis() if (currTime - lastLongUpdate > 1000) { longupdate = true lastLongUpdate = currTime |