Skip to content

Commit f467220

Browse files
authored
Start rendering after everything else is loaded (#425)
To attempt to fix the weirdness with tile filters not working at startup
1 parent b9dbb10 commit f467220

File tree

1 file changed

+7
-7
lines changed
  • BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin

1 file changed

+7
-7
lines changed

BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/Plugin.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,6 @@ private void load(@Nullable ResourcePack preloadedResourcePack) throws IOExcepti
220220
}
221221
});
222222

223-
//start render-manager
224-
if (pluginState.isRenderThreadsEnabled()) {
225-
checkPausedByPlayerCount(); // <- this also starts the render-manager if it should start
226-
} else {
227-
Logger.global.logInfo("Render-Threads are STOPPED! Use the command 'bluemap start' to start them.");
228-
}
229-
230223
//update webapp and settings
231224
if (webappConfig.isEnabled())
232225
blueMap.createOrUpdateWebApp(false);
@@ -325,6 +318,13 @@ public void run() {
325318
if (webappConfig.isEnabled())
326319
this.getBlueMap().getWebFilesManager().saveSettings();
327320

321+
//start render-manager
322+
if (pluginState.isRenderThreadsEnabled()) {
323+
checkPausedByPlayerCount(); // <- this also starts the render-manager if it should start
324+
} else {
325+
Logger.global.logInfo("Render-Threads are STOPPED! Use the command 'bluemap start' to start them.");
326+
}
327+
328328
//done
329329
loaded = true;
330330
}

0 commit comments

Comments
 (0)