mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 15:42:53 +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.
|
// Check if there are players in this world.
|
||||||
if (this.getPlayerCount() == 0) return true;
|
if (this.getPlayerCount() == 0) return true;
|
||||||
// Tick all associated scenes.
|
// Tick all associated scenes.
|
||||||
this.getScenes().forEach((k, scene) -> {
|
this.getScenes()
|
||||||
if (scene.getPlayerCount() > 0) scene.onTick();
|
.forEach(
|
||||||
});
|
(k, scene) -> {
|
||||||
|
if (scene.getPlayerCount() > 0) scene.onTick();
|
||||||
|
});
|
||||||
|
|
||||||
// sync time every 10 seconds
|
// sync time every 10 seconds
|
||||||
if (this.tickCount % 10 == 0) {
|
if (this.tickCount % 10 == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user