This commit is contained in:
Anuken
2020-09-16 16:04:11 -04:00
parent 5c98512e4f
commit 030542890e
8 changed files with 25 additions and 9 deletions

View File

@@ -130,7 +130,7 @@ public class Map implements Comparable<Map>, Publishable{
}
public String tag(String name){
return tags.containsKey(name) && !tags.get(name).trim().isEmpty() ? tags.get(name) : Core.bundle.get("unknown");
return tags.containsKey(name) && !tags.get(name).trim().isEmpty() ? tags.get(name) : Core.bundle.get("unknown", "unknown");
}
public boolean hasTag(String name){

View File

@@ -59,6 +59,7 @@ public class Maps{
/** @return the next map to shuffle to. May be null, in which case the server should be stopped. */
public @Nullable Map getNextMap(Gamemode mode, @Nullable Map previous){
if(shuffler != null) return shuffler.next(mode, previous);
return shuffleMode.next(mode, previous);
}