mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 04:03:21 +08:00
Format code [skip actions]
This commit is contained in:
parent
6da5343df0
commit
47172c995f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user