Start rendering after everything else is loaded (#425)

To attempt to fix the weirdness with tile filters not working at startup
This commit is contained in:
Antti Ellilä 2023-05-07 20:24:43 +03:00 committed by GitHub
parent b9dbb100e4
commit f467220400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,13 +220,6 @@ private void load(@Nullable ResourcePack preloadedResourcePack) throws IOExcepti
}
});
//start render-manager
if (pluginState.isRenderThreadsEnabled()) {
checkPausedByPlayerCount(); // <- this also starts the render-manager if it should start
} else {
Logger.global.logInfo("Render-Threads are STOPPED! Use the command 'bluemap start' to start them.");
}
//update webapp and settings
if (webappConfig.isEnabled())
blueMap.createOrUpdateWebApp(false);
@ -325,6 +318,13 @@ public void run() {
if (webappConfig.isEnabled())
this.getBlueMap().getWebFilesManager().saveSettings();
//start render-manager
if (pluginState.isRenderThreadsEnabled()) {
checkPausedByPlayerCount(); // <- this also starts the render-manager if it should start
} else {
Logger.global.logInfo("Render-Threads are STOPPED! Use the command 'bluemap start' to start them.");
}
//done
loaded = true;
}