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