Add config for integrated server watchdog

This commit is contained in:
embeddedt 2023-05-07 14:07:17 -04:00
parent 3ba38b602a
commit 65e12016b6
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
2 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,8 @@ public class ModernFixClient {
}
public void onServerStarted(MinecraftServer server) {
if(!ModernFixMixinPlugin.instance.isOptionEnabled("feature.integrated_server_watchdog.IntegratedWatchdog"))
return;
IntegratedWatchdog watchdog = new IntegratedWatchdog(server);
watchdog.start();
}

View File

@ -145,6 +145,7 @@ public class ModernFixEarlyConfig {
.put("mixin.perf.compress_blockstate", false)
.put("mixin.bugfix.packet_leak", false)
.put("mixin.perf.deduplicate_location", false)
.put("mixin.feature.integrated_server_watchdog", true)
.put("mixin.perf.blast_search_trees", shouldReplaceSearchTrees)
.put("mixin.devenv", isDevEnv)
.put("mixin.perf.remove_spawn_chunks", isDevEnv)