mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 16:51:37 +00:00
Change Collections.emptyList() to ImmutableList.of() in Sector.
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package org.apollo.game.model.area;
|
package org.apollo.game.model.area;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -121,7 +120,7 @@ public final class Sector {
|
|||||||
List<Entity> entities = this.entities.get(position);
|
List<Entity> entities = this.entities.get(position);
|
||||||
if (entities == null) {
|
if (entities == null) {
|
||||||
this.entities.put(position, new ArrayList<>());
|
this.entities.put(position, new ArrayList<>());
|
||||||
return Collections.emptyList();
|
return ImmutableList.of();
|
||||||
}
|
}
|
||||||
|
|
||||||
return ImmutableList.copyOf(entities);
|
return ImmutableList.copyOf(entities);
|
||||||
|
|||||||
Reference in New Issue
Block a user