Fix NPE on Multiverse core link

This commit is contained in:
Daniel Mills 2021-06-11 16:52:53 -04:00
parent 24480ef13a
commit 1421869094

View File

@ -111,8 +111,16 @@ public class MultiverseCoreLink
public String getWorldNameType(String worldName, String defaultType) public String getWorldNameType(String worldName, String defaultType)
{ {
String t = worldNameTypes.get(worldName); try
return t == null ? defaultType : t; {
String t = worldNameTypes.get(worldName);
return t == null ? defaultType : t;
}
catch(Throwable e)
{
return defaultType;
}
} }
public boolean supported() public boolean supported()