mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 09:23:11 +08:00
Update to support PlayerMoveEvent
This commit is contained in:
parent
1b8df002d1
commit
02ca5cf23c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user