mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
Fix NullPointerException in getLowestChair
This commit is contained in:
parent
661fe4879e
commit
00408eeaaf
@ -3426,6 +3426,8 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public HabboItem getLowestChair(int x, int y) {
|
public HabboItem getLowestChair(int x, int y) {
|
||||||
|
if (this.layout == null) return null;
|
||||||
|
|
||||||
RoomTile tile = this.layout.getTile((short) x, (short) y);
|
RoomTile tile = this.layout.getTile((short) x, (short) y);
|
||||||
|
|
||||||
if (tile != null) {
|
if (tile != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user