mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-03-13 04:47:18 +08:00
Prevent updating player game time
This commit is contained in:
parent
d2203cc511
commit
c0381d3795
@ -328,7 +328,10 @@ public class Player {
|
||||
* @param gameTime The new game time.
|
||||
*/
|
||||
public void updatePlayerGameTime(long gameTime) {
|
||||
if (this.getWorld().isTimeLocked()) return;
|
||||
if (this.playerGameTime == gameTime) return;
|
||||
|
||||
// Update the game time.
|
||||
this.playerGameTime = gameTime;
|
||||
|
||||
// If the player is the host of the world, update the game time as well.
|
||||
|
Loading…
x
Reference in New Issue
Block a user