Skip to content

Commit

Permalink
trying to fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Aug 4, 2022
1 parent 19f20f3 commit 619ee7f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import possible_triangle.skygrid.world.SkygridGenerator
@ExperimentalSerializationApi
@ExperimentalXmlUtilApi
@Suppress("unused")
object SkygridFabric : ModInitializer {
object SkygridFabric : ModInitializer, ClientModInitializer {

override fun onInitialize() {
SkygridMod.init()
Expand All @@ -35,8 +35,10 @@ object SkygridFabric : ModInitializer {

CommandRegistrationCallback.EVENT.register { it, _ -> SkygridCommand.register(it) }

WorldPresetMixin.presets().add(SkygridGenerator)
}

override fun onInitializeClient() {
WorldPresetMixin.presets().add(SkygridGenerator)
}

}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ subprojects {
'Timestampe' : System.currentTimeMillis(),
'Built-On-Java' : "${System.getProperty('java.vm.version')} (${System.getProperty('java.vm.vendor')})",
'Build-On-Minecraft' : minecraft_version,
"MixinConfigs": "${mod_id}.${project.name.toLowerCase()}.mixins.json"
//"MixinConfigs": "${mod_id}.${project.name.toLowerCase()}.mixins.json"
])
}
}
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ common_client_run_name=Common Client
common_server_run_name=Common Server

# Forge
forge_version=40.0.22
forge_version=40.1.60
#forge_ats_enabled=true

# Fabric
fabric_version=0.48.0+1.18.2
fabric_loader_version=0.13.3
fabric_version=0.58.0+1.18.2
fabric_loader_version=0.14.8

# Mod options
mod_name=Skygrid
Expand Down

0 comments on commit 619ee7f

Please sign in to comment.