Commit 02ca5cf2 authored by KingRainbow44's avatar KingRainbow44
Browse files

Update to support `PlayerMoveEvent`

parent 1b8df002
...@@ -58,8 +58,7 @@ public class HandlerCombatInvocationsNotify extends PacketHandler { ...@@ -58,8 +58,7 @@ public class HandlerCombatInvocationsNotify extends PacketHandler {
new Position(motionInfo.getRot()), motionState); new Position(motionInfo.getRot()), motionState);
event.call(); event.call();
entity.getPosition().set(motionInfo.getPos()); entity.move(event.getPosition(), event.getRotation());
entity.getRotation().set(motionInfo.getRot());
entity.setLastMoveSceneTimeMs(moveInfo.getSceneTime()); entity.setLastMoveSceneTimeMs(moveInfo.getSceneTime());
entity.setLastMoveReliableSeq(moveInfo.getReliableSeq()); entity.setLastMoveReliableSeq(moveInfo.getReliableSeq());
entity.setMotionState(motionState); entity.setMotionState(motionState);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment