fixed NPE in WorldProperty

probably fix: https://gist.github.com/marcin212/8e73b41a6269f0825d03
This commit is contained in:
marcin212 2014-09-30 18:32:59 +02:00 committed by marcin212
parent e5cbc8bd95
commit b819ad4c3f

View file

@ -49,7 +49,9 @@ public abstract class WorldProperty implements IWorldProperty {
@Override
public void clear() {
for (DimensionProperty p : properties) {
p.clear();
if (p != null) {
p.clear();
}
}
properties.clear();