actually read the worldSkyLight config value

This commit is contained in:
Blue (Lukas Rieger) 2021-09-13 20:20:10 +02:00
parent a09d930b15
commit 1b8bdf2bf4
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ public class BlueMapService {
World world = worlds.get(worldUUID);
if (world == null) {
try {
world = MCAWorld.load(worldFolder.toPath(), worldUUID, worldNameProvider.apply(worldUUID), 15, mapConfig.isIgnoreMissingLightData());
world = MCAWorld.load(worldFolder.toPath(), worldUUID, worldNameProvider.apply(worldUUID), mapConfig.getWorldSkyLight(), mapConfig.isIgnoreMissingLightData());
worlds.put(worldUUID, world);
} catch (MissingResourcesException e) {
throw e; // rethrow this to stop loading and display resource-missing message