Fix NullPointerException in getLowestChair

This commit is contained in:
Alejandro 2019-05-27 16:26:01 +03:00
parent 661fe4879e
commit 00408eeaaf

View File

@ -3426,6 +3426,8 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
@Deprecated
public HabboItem getLowestChair(int x, int y) {
if (this.layout == null) return null;
RoomTile tile = this.layout.getTile((short) x, (short) y);
if (tile != null) {