mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +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())
|
||||
return;
|
||||
|
||||
if (habbo.getHabboInfo().getCurrentRoom() == null || habbo.getHabboInfo().getCurrentRoom().getLayout() == null)
|
||||
return;
|
||||
|
||||
RoomTile tile = habbo.getHabboInfo().getCurrentRoom().getLayout().getTile((short) x, (short) y);
|
||||
|
||||
if (tile == null)
|
||||
|
Loading…
Reference in New Issue
Block a user