Skip to content

Commit

Permalink
chore: clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Nov 8, 2024
1 parent 177eb7c commit 7164e6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
5 changes: 0 additions & 5 deletions api/src/main/java/org/allaymc/api/server/ServerSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7164e6f

Please sign in to comment.