mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 14:24:37 +01:00
Fix player not moving positions when teleporting around inside a scene
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user