mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix NPE on Multiverse core link
This commit is contained in:
parent
24480ef13a
commit
1421869094
@ -110,11 +110,19 @@ public class MultiverseCoreLink
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getWorldNameType(String worldName, String defaultType)
|
public String getWorldNameType(String worldName, String defaultType)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
String t = worldNameTypes.get(worldName);
|
String t = worldNameTypes.get(worldName);
|
||||||
return t == null ? defaultType : t;
|
return t == null ? defaultType : t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
catch(Throwable e)
|
||||||
|
{
|
||||||
|
return defaultType;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public boolean supported()
|
public boolean supported()
|
||||||
{
|
{
|
||||||
return getMultiverse() != null;
|
return getMultiverse() != null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user