From 02ca5cf23c3205ab1c91458d5f00ce15dc7eda3a Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Fri, 15 Jul 2022 16:12:22 -0400 Subject: [PATCH] Update to support `PlayerMoveEvent` --- .../server/packet/recv/HandlerCombatInvocationsNotify.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java index e77cbecb7..839ed5447 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java @@ -58,8 +58,7 @@ public class HandlerCombatInvocationsNotify extends PacketHandler { new Position(motionInfo.getRot()), motionState); event.call(); - entity.getPosition().set(motionInfo.getPos()); - entity.getRotation().set(motionInfo.getRot()); + entity.move(event.getPosition(), event.getRotation()); entity.setLastMoveSceneTimeMs(moveInfo.getSceneTime()); entity.setLastMoveReliableSeq(moveInfo.getReliableSeq()); entity.setMotionState(motionState);