mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-04 23:23:20 +08:00
fix: integer division in floating point
This commit is contained in:
parent
6e7418a89d
commit
d5ad077ce1
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user