mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 04:13:00 +08:00
Pause in-game time when the world is paused
This commit is contained in:
parent
c80e0f0572
commit
0c45a548cc
@ -485,6 +485,8 @@ public final class World implements Iterable<Player> {
|
||||
// Update the world time.
|
||||
this.getWorldTime();
|
||||
this.updateTime();
|
||||
// Lock the world time.
|
||||
this.lockTime(paused);
|
||||
|
||||
// If the world is being un-paused, update the last update time.
|
||||
if (this.isPaused != paused && !paused) {
|
||||
|
Loading…
Reference in New Issue
Block a user