mirror of
https://github.com/Melledy/LunarCore.git
synced 2026-02-04 15:05:07 +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 {
|
} else {
|
||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user