mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 15:36:27 +01:00
Fix npe #515
This commit is contained in:
parent
6111ce6be2
commit
0dc6ebda10
@ -35,6 +35,9 @@ public class RoomUnitTeleport implements Runnable {
|
||||
if (roomUnit == null || roomUnit.getRoom() == null)
|
||||
return;
|
||||
|
||||
if (room.getLayout() == null)
|
||||
return;
|
||||
|
||||
RoomTile t = this.room.getLayout().getTile((short) this.x, (short) this.y);
|
||||
|
||||
HabboItem topItem = this.room.getTopItemAt(this.roomUnit.getCurrentLocation().x, this.roomUnit.getCurrentLocation().y);
|
||||
|
Loading…
Reference in New Issue
Block a user