mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 04:52:52 +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.
|
// Update the world time.
|
||||||
this.getWorldTime();
|
this.getWorldTime();
|
||||||
this.updateTime();
|
this.updateTime();
|
||||||
|
// Lock the world time.
|
||||||
|
this.lockTime(paused);
|
||||||
|
|
||||||
// If the world is being un-paused, update the last update time.
|
// If the world is being un-paused, update the last update time.
|
||||||
if (this.isPaused != paused && !paused) {
|
if (this.isPaused != paused && !paused) {
|
||||||
|
Loading…
Reference in New Issue
Block a user