Pause in-game time when the world is paused

This commit is contained in:
KingRainbow44 2023-05-18 02:58:08 -04:00
parent c80e0f0572
commit 0c45a548cc
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -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) {