set plr velocity to 0 when denying move event
All checks were successful
/ Auto-Build-App (push) Successful in 1m30s
All checks were successful
/ Auto-Build-App (push) Successful in 1m30s
This commit is contained in:
parent
89c36a92a6
commit
860f6d42d2
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ public class PlayerPositionMixin {
|
||||||
|
|
||||||
Vector3 new_pos = player.getPosition().cpy().sub(position);
|
Vector3 new_pos = player.getPosition().cpy().sub(position);
|
||||||
player.getEntity().velocity.set(0,0,0);
|
player.getEntity().velocity.set(0,0,0);
|
||||||
|
player.getEntity().onceVelocity.set(0,0,0);
|
||||||
|
|
||||||
PlayerPositionPacket plr_packet = new PlayerPositionPacket(player);
|
PlayerPositionPacket plr_packet = new PlayerPositionPacket(player);
|
||||||
plr_packet.position.add(new_pos);
|
plr_packet.position.add(new_pos);
|
||||||
|
|
Loading…
Reference in a new issue