Fix player not moving positions when teleporting around inside a scene

This commit is contained in:
Melledy
2023-11-01 17:11:08 -07:00
parent 791ad7dacb
commit 7e1d7fd0a9

View File

@@ -495,10 +495,12 @@ public class Player {
nextScene = new Scene(this, planeExcel, floorId); nextScene = new Scene(this, planeExcel, floorId);
} }
// Set player position
this.getPos().set(pos);
this.getRot().set(rot);
// Save if scene has changed // Save if scene has changed
if (this.planeId != planeId || this.floorId != floorId || this.entryId != entryId) { if (this.planeId != planeId || this.floorId != floorId || this.entryId != entryId) {
this.getPos().set(pos);
this.getRot().set(rot);
this.planeId = planeId; this.planeId = planeId;
this.floorId = floorId; this.floorId = floorId;
this.entryId = entryId; this.entryId = entryId;