diff --git a/src/main/java/cactusServer/models/Instances.java b/src/main/java/cactusServer/models/Instances.java index befbc3b..27697f0 100644 --- a/src/main/java/cactusServer/models/Instances.java +++ b/src/main/java/cactusServer/models/Instances.java @@ -91,7 +91,7 @@ * @return */ public List getPlayers(String instanceId) { - if (instanceId == null || instanceId.equals("")) { + if (instanceId == null || instanceId.isEmpty()) { return getPlayers(); } List responsePlayers = new ArrayList<>();