Skip to content

Commit

Permalink
Fix config crashing the game.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSVK12 committed Aug 24, 2024
1 parent f89ed69 commit d138f74
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ dragonfly_version=1.5.0-7.2-pre2
terrain_api_version=1.4.4-7.2-pre1

# Mod
mod_version=0.15.0
mod_version=0.15.1
mod_group=sunsetsatellite
mod_name=signalindustries
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,27 @@ public class SignalIndustries implements ModInitializer, GameStartEntrypoint, Cl
changed = true;
}


if(!rawConfig.contains("Experimental.enableDynamicChunkProvider")){
try {
if(!rawConfig.contains("Experimental.enableDynamicChunkProvider")){
rawConfig.addEntry("Experimental.enableDynamicChunkProvider", false);
changed = true;
}
} catch (NullPointerException e){
rawConfig.addEntry("Experimental.enableDynamicChunkProvider", false);
changed = true;
}

if(!rawConfig.contains("Other.enableQuests")){
try {
if(!rawConfig.contains("Other.enableQuests")){
rawConfig.addEntry("Other.enableQuests", false);
changed = true;
}
} catch (NullPointerException e){
rawConfig.addEntry("Other.enableQuests", false);
changed = true;
}


if(!rawConfig.contains("Other.eternityDimId")){
rawConfig.addEntry("Other.eternityDimId", 3);
changed = true;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"signalindustries.mixins.json"
],
"depends": {
"minecraft": "~7.2-beta",
"minecraft": ["7.2","7.2.1"],
"fabricloader": ">=0.15.6-babric.6-bta",
"catalyst-core": ">=1.4.4",
"catalyst-fluids": ">=1.1.7",
Expand Down

0 comments on commit d138f74

Please sign in to comment.