Format code [skip actions]

This commit is contained in:
github-actions 2023-06-16 18:05:28 +00:00
parent 6da5343df0
commit 47172c995f

View File

@ -437,9 +437,11 @@ public class World implements Iterable<Player> {
// 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) {