From d5ad077ce1e09404ed3a55be07404bc9e76923fc Mon Sep 17 00:00:00 2001 From: "Breno A." Date: Sun, 9 Jun 2024 09:37:06 -0300 Subject: [PATCH] fix: integer division in floating point --- .../java/emu/grasscutter/game/managers/SatiationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/game/managers/SatiationManager.java b/src/main/java/emu/grasscutter/game/managers/SatiationManager.java index 29e992863..71d1fea21 100644 --- a/src/main/java/emu/grasscutter/game/managers/SatiationManager.java +++ b/src/main/java/emu/grasscutter/game/managers/SatiationManager.java @@ -98,7 +98,7 @@ public class SatiationManager extends BasePlayerManager { * Player Updates ********************/ public synchronized void updateSingleAvatar(Avatar avatar, float givenTime) { - float time = (player.getClientTime() / 1000) + givenTime; + float time = ((float) player.getClientTime() / 1000) + givenTime; player.getSession().send(new PacketAvatarPropNotify(avatar)); player.getSession().send(new PacketAvatarSatiationDataNotify(time, avatar)); }