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

@@ -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;