mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-14 07:55:57 +01:00
Update to support PlayerMoveEvent
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user