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
1 changed files with 7 additions and 7 deletions

View File

@ -220,13 +220,6 @@ public class Plugin implements ServerEventListener {
}
});
//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 class Plugin implements ServerEventListener {
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;
}