Partially fix fairy clock (#2143)

updatePlayerGameTime() expects time since game start not since day start.
This commit is contained in:
scooterboo 2023-05-05 15:36:55 -07:00 committed by GitHub
parent 48e233eb9b
commit f0a11c1b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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