mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fixed wired teleporting breaks after teleporting from another room
This commit is contained in:
parent
27af901b11
commit
f8aaec7fa7
@ -34,9 +34,14 @@ public class RoomUnitTeleport implements Runnable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (roomUnit == null || roomUnit.getRoom() == null || room.getLayout() == null || roomUnit.isLeavingTeleporter)
|
if (roomUnit == null || roomUnit.getRoom() == null || room.getLayout() == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (roomUnit.isLeavingTeleporter) {
|
||||||
|
roomUnit.isWiredTeleporting = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
RoomTile lastLocation = this.roomUnit.getCurrentLocation();
|
RoomTile lastLocation = this.roomUnit.getCurrentLocation();
|
||||||
RoomTile newLocation = this.room.getLayout().getTile((short) this.x, (short) this.y);
|
RoomTile newLocation = this.room.getLayout().getTile((short) this.x, (short) this.y);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user