mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-19 13:51:20 +01:00
Fix NPE; resolves #365
This commit is contained in:
parent
f57cdf1a2b
commit
e63ae2d58a
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user