Fixed NPE in Room.getItemsAt Closes #881 #883

This commit is contained in:
Beny 2020-11-02 03:10:13 +01:00
parent 4992b759e4
commit 44b7b25b43

View File

@ -3396,9 +3396,9 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
return items; return items;
if (this.loaded) { if (this.loaded) {
if (this.tileCache.containsKey(tile)) { THashSet<HabboItem> cachedItems = this.tileCache.get(tile);
return this.tileCache.get(tile); if(cachedItems != null)
} return cachedItems;
} }
TIntObjectIterator<HabboItem> iterator = this.roomItems.iterator(); TIntObjectIterator<HabboItem> iterator = this.roomItems.iterator();