diff --git a/api/src/main/java/org/allaymc/api/server/ServerSettings.java b/api/src/main/java/org/allaymc/api/server/ServerSettings.java index 35b67dd3f..9b753c241 100644 --- a/api/src/main/java/org/allaymc/api/server/ServerSettings.java +++ b/api/src/main/java/org/allaymc/api/server/ServerSettings.java @@ -161,11 +161,6 @@ public static class WorldConfig extends OkaeriConfig { @CustomKey("spawn-point-chunk-radius") private int spawnPointChunkRadius = 3; - @Comment("Determines whether to calculate light asynchronously") - @Comment("If set to true, light will be calculated in compute thread pool") - @CustomKey("async-light-calculating") - private boolean asyncLightCalculating = true; - @Comment("Determines the maximum number of light updates that can be processed per tick") @CustomKey("max-light-update-count-per-tick") private int maxLightUpdateCountPerTick = 65536; diff --git a/server/src/main/java/org/allaymc/server/world/AllayDimension.java b/server/src/main/java/org/allaymc/server/world/AllayDimension.java index 565c0fdc1..92469d3fa 100644 --- a/server/src/main/java/org/allaymc/server/world/AllayDimension.java +++ b/server/src/main/java/org/allaymc/server/world/AllayDimension.java @@ -58,13 +58,7 @@ public void tick(long currentTick) { entityService.tick(); entityPhysicsService.tick(); blockUpdateService.tick(currentTick); - if (Server.SETTINGS.worldSettings().asyncLightCalculating()) { - // TODO - lightService.tick(); -// Server.getInstance().getComputeThreadPool().execute(lightService::tick); - } else { - lightService.tick(); - } + lightService.tick(); } public void shutdown() {