From 7e1d7fd0a9e4a50e5edc94f559768cc96bf0d419 Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Wed, 1 Nov 2023 17:11:08 -0700 Subject: [PATCH] Fix player not moving positions when teleporting around inside a scene --- src/main/java/emu/lunarcore/game/player/Player.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/lunarcore/game/player/Player.java b/src/main/java/emu/lunarcore/game/player/Player.java index e7c363e..d6e8c71 100644 --- a/src/main/java/emu/lunarcore/game/player/Player.java +++ b/src/main/java/emu/lunarcore/game/player/Player.java @@ -494,11 +494,13 @@ public class Player { } else { nextScene = new Scene(this, planeExcel, floorId); } + + // Set player position + this.getPos().set(pos); + this.getRot().set(rot); // Save if scene has changed if (this.planeId != planeId || this.floorId != floorId || this.entryId != entryId) { - this.getPos().set(pos); - this.getRot().set(rot); this.planeId = planeId; this.floorId = floorId; this.entryId = entryId;