diff --git a/src/main/java/cactusServer/entities/Instance.java b/src/main/java/cactusServer/entities/Instance.java index 650f494..cf4504b 100644 --- a/src/main/java/cactusServer/entities/Instance.java +++ b/src/main/java/cactusServer/entities/Instance.java @@ -83,11 +83,7 @@ @JSONHint(ignore = true) public List getCharacters() { - List characters = new ArrayList<>(); - for (Character character : characterMap.values()) { - characters.add(character); - } - return characters; + return new ArrayList(characterMap.values()); } @JSONHint(ignore = true)