mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 07:15:43 +00:00
Fully fix fairy clock for real this time (#2167)
* Fully fix fairy clock For real this time * Make it so relogging keeps the time lock state. * Refactor out questLockTime * Per Hartie, the client packet needs to be changed too * Update src/main/java/emu/grasscutter/game/world/World.java Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com> * Update src/main/java/emu/grasscutter/server/packet/recv/HandlerClientLockGameTimeNotify.java * Remove all code not needed to get clock working --------- Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
This commit is contained in:
parent
911993084e
commit
9b58105120
@ -339,7 +339,6 @@ public class Player implements PlayerHook, FieldFetch {
|
||||
* @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.
|
||||
|
@ -483,8 +483,6 @@ 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