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