Skip to content

Commit

Permalink
Format code [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 16, 2023
1 parent 6da5343 commit 47172c9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/emu/grasscutter/game/world/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,11 @@ public boolean onTick() {
// Check if there are players in this world.
if (this.getPlayerCount() == 0) return true;
// Tick all associated scenes.
this.getScenes().forEach((k, scene) -> {
if (scene.getPlayerCount() > 0) scene.onTick();
});
this.getScenes()
.forEach(
(k, scene) -> {
if (scene.getPlayerCount() > 0) scene.onTick();
});

// sync time every 10 seconds
if (this.tickCount % 10 == 0) {
Expand Down

0 comments on commit 47172c9

Please sign in to comment.