Fix rotation not being set when moving player

This commit is contained in:
Melledy
2023-10-20 03:58:15 -07:00
parent 0c2259f9bd
commit fc762e96a4

View File

@@ -14,7 +14,7 @@ public class PacketSceneEntityMoveScNotify extends BasePacket {
var data = SceneEntityMoveScNotify.newInstance()
.setEntryId(player.getEntryId())
.setMotion(MotionInfo.newInstance().setPos(player.getPos().toProto()).setRot(Vector.newInstance()));
.setMotion(MotionInfo.newInstance().setPos(player.getPos().toProto()).setRot(player.getRot().toProto()));
this.setData(data);
}