mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Fix a NullPointerException in Room.getItemsAt
This commit is contained in:
parent
e15ea51c63
commit
0e73506278
@ -4047,6 +4047,9 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
|
||||
|
||||
THashSet<HabboItem> items = new THashSet<>(0);
|
||||
|
||||
if (tile == null)
|
||||
return items;
|
||||
|
||||
TIntObjectIterator<HabboItem> iterator = this.roomItems.iterator();
|
||||
|
||||
for (int i = this.roomItems.size(); i-- > 0; )
|
||||
@ -4062,6 +4065,9 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
|
||||
break;
|
||||
}
|
||||
|
||||
if (item == null)
|
||||
continue;
|
||||
|
||||
if (item.getBaseItem().getType() != FurnitureType.FLOOR)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user