mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +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;
|
||||
|
||||
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