mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fixed NullPointer in RoomManager.java
This commit is contained in:
parent
c634906234
commit
6522b08f7e
@ -795,11 +795,12 @@ public class RoomManager
|
||||
|
||||
if (!habbo.getRoomUnit().isTeleporting)
|
||||
{
|
||||
habbo.getRoomUnit().setLocation(room.getLayout().getTile(room.getLayout().getDoorX(), room.getLayout().getDoorY()));
|
||||
|
||||
RoomTile doorTile = room.getLayout().getTile(room.getLayout().getDoorX(), room.getLayout().getDoorY());
|
||||
|
||||
if (doorTile != null)
|
||||
{
|
||||
habbo.getRoomUnit().setLocation(doorTile);
|
||||
habbo.getRoomUnit().setZ(doorTile.getStackHeight());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user