mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-30 22:44:07 +01:00
fixed nullpointer exception in GlobalRegionManager.java
This commit is contained in:
parent
af2e862ca2
commit
36fef995e4
@ -117,7 +117,7 @@ public void setGlobalFlags(String worldName, GlobalFlags globalflags) {
|
|||||||
if (globalflags != null) {
|
if (globalflags != null) {
|
||||||
RegionManager ret = this.managers.get(worldName);
|
RegionManager ret = this.managers.get(worldName);
|
||||||
|
|
||||||
if (ret == null) {
|
if (ret != null) {
|
||||||
ret.setGlobalFlags(globalflags);
|
ret.setGlobalFlags(globalflags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user