fix: integer division in floating point

This commit is contained in:
Breno A. 2024-06-09 09:37:06 -03:00
parent 6e7418a89d
commit d5ad077ce1

View File

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