mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 01:22:54 +00:00
parent
13d95c5c84
commit
061782f555
@ -422,7 +422,7 @@ public final class World implements Iterable<Player> {
|
||||
}
|
||||
|
||||
// store updated world time every 60 seconds. (in-game hour)
|
||||
if (this.tickCount % 60 == 0) {
|
||||
if (this.tickCount % 60 == 0 && !this.timeLocked) {
|
||||
this.getHost().updatePlayerGameTime(this.currentWorldTime);
|
||||
}
|
||||
|
||||
@ -494,7 +494,7 @@ public final class World implements Iterable<Player> {
|
||||
* @param gameTime The time in game minutes.
|
||||
*/
|
||||
public void changeTime(long gameTime) {
|
||||
if (!this.timeLocked) this.currentWorldTime = gameTime;
|
||||
this.currentWorldTime = gameTime;
|
||||
|
||||
// Trigger script events.
|
||||
this.players.forEach(
|
||||
|
Loading…
Reference in New Issue
Block a user