mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-07 15:12:35 +01:00
Fix NullPointerException
This commit is contained in:
parent
b74cd20c9f
commit
cc5b940a4d
@ -3244,17 +3244,17 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public THashSet<HabboItem> getItemsAt(RoomTile tile) {
|
public THashSet<HabboItem> getItemsAt(RoomTile tile) {
|
||||||
|
THashSet<HabboItem> items = new THashSet<>(0);
|
||||||
|
|
||||||
|
if (tile == null)
|
||||||
|
return items;
|
||||||
|
|
||||||
if (this.loaded) {
|
if (this.loaded) {
|
||||||
if (this.tileCache.containsKey(tile)) {
|
if (this.tileCache.containsKey(tile)) {
|
||||||
return this.tileCache.get(tile);
|
return this.tileCache.get(tile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
THashSet<HabboItem> items = new THashSet<>(0);
|
|
||||||
|
|
||||||
if (tile == null)
|
|
||||||
return items;
|
|
||||||
|
|
||||||
TIntObjectIterator<HabboItem> iterator = this.roomItems.iterator();
|
TIntObjectIterator<HabboItem> iterator = this.roomItems.iterator();
|
||||||
|
|
||||||
for (int i = this.roomItems.size(); i-- > 0; ) {
|
for (int i = this.roomItems.size(); i-- > 0; ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user