mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 23:34:50 +01:00
Fix player not moving positions when teleporting around inside a scene
This commit is contained in:
@@ -495,10 +495,12 @@ public class Player {
|
|||||||
nextScene = new Scene(this, planeExcel, floorId);
|
nextScene = new Scene(this, planeExcel, floorId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save if scene has changed
|
// Set player position
|
||||||
if (this.planeId != planeId || this.floorId != floorId || this.entryId != entryId) {
|
|
||||||
this.getPos().set(pos);
|
this.getPos().set(pos);
|
||||||
this.getRot().set(rot);
|
this.getRot().set(rot);
|
||||||
|
|
||||||
|
// Save if scene has changed
|
||||||
|
if (this.planeId != planeId || this.floorId != floorId || this.entryId != entryId) {
|
||||||
this.planeId = planeId;
|
this.planeId = planeId;
|
||||||
this.floorId = floorId;
|
this.floorId = floorId;
|
||||||
this.entryId = entryId;
|
this.entryId = entryId;
|
||||||
|
|||||||
Reference in New Issue
Block a user