mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 15:42:53 +08:00
Partially fix fairy clock (#2143)
updatePlayerGameTime() expects time since game start not since day start.
This commit is contained in:
parent
48e233eb9b
commit
f0a11c1b4e
@ -16,7 +16,7 @@ public class HandlerSkipPlayerGameTimeReq extends PacketHandler {
|
||||
var req = SkipPlayerGameTimeReq.parseFrom(payload);
|
||||
var player = session.getPlayer();
|
||||
|
||||
var newTime = req.getGameTime() * 1000L;
|
||||
var newTime = req.getGameTime() * 1000L + player.getPlayerGameTime() - (player.getPlayerGameTime() % 1440000);
|
||||
player.updatePlayerGameTime(newTime);
|
||||
player.getScene().broadcastPacket(new PacketPlayerGameTimeNotify(player));
|
||||
player.sendPacket(new PacketSkipPlayerGameTimeRsp(req));
|
||||
|
Loading…
Reference in New Issue
Block a user