fixed nullpointer exception in GlobalRegionManager.java

This commit is contained in:
Valentin Churavy 2011-03-06 15:25:41 +01:00
parent af2e862ca2
commit 36fef995e4

View File

@ -117,7 +117,7 @@ public void setGlobalFlags(String worldName, GlobalFlags globalflags) {
if (globalflags != null) {
RegionManager ret = this.managers.get(worldName);
if (ret == null) {
if (ret != null) {
ret.setGlobalFlags(globalflags);
}
}