Fix NPE; resolves #365

This commit is contained in:
Sataniel98 2018-04-06 03:36:44 +02:00
parent f57cdf1a2b
commit e63ae2d58a

View File

@ -128,7 +128,7 @@ public class DResourceWorld {
}
public Environment getWorldEnvironment() {
return config != null ? config.getWorldEnvironment() : Environment.NORMAL;
return (config != null && config.getWorldEnvironment() != null) ? config.getWorldEnvironment() : Environment.NORMAL;
}
/**