mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 09:50:51 +01:00
Fixed NullPointer in Rooms.
This commit is contained in:
parent
6522b08f7e
commit
05b0517e8d
@ -54,6 +54,9 @@ public class RoomUserWalkEvent extends MessageHandler
|
|||||||
if (x == roomUnit.getX() && y == roomUnit.getY())
|
if (x == roomUnit.getX() && y == roomUnit.getY())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (habbo.getHabboInfo().getCurrentRoom() == null || habbo.getHabboInfo().getCurrentRoom().getLayout() == null)
|
||||||
|
return;
|
||||||
|
|
||||||
RoomTile tile = habbo.getHabboInfo().getCurrentRoom().getLayout().getTile((short) x, (short) y);
|
RoomTile tile = habbo.getHabboInfo().getCurrentRoom().getLayout().getTile((short) x, (short) y);
|
||||||
|
|
||||||
if (tile == null)
|
if (tile == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user