Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ public static void incrementWaiting(Entity entity){
}

public static int getWaitingTime(Entity entity){
return waiting.get(entity.getUniqueId());
return waiting.getOrDefault(entity.getUniqueId(), -1);
}

public static int getSize(Entity entity){
return currentEntities.get(entity.getUniqueId());
return currentEntities.getOrDefault(entity.getUniqueId(), 1);
}

public static void setSize(Entity entity, int newSize){
Expand Down