diff --git a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java index 44555132..7dd1b524 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java @@ -3244,17 +3244,17 @@ public class Room implements Comparable, ISerialize, Runnable { } public THashSet getItemsAt(RoomTile tile) { + THashSet items = new THashSet<>(0); + + if (tile == null) + return items; + if (this.loaded) { if (this.tileCache.containsKey(tile)) { return this.tileCache.get(tile); } } - THashSet items = new THashSet<>(0); - - if (tile == null) - return items; - TIntObjectIterator iterator = this.roomItems.iterator(); for (int i = this.roomItems.size(); i-- > 0; ) {