diff --git a/BauSystem_Main/src/de/steamwar/bausystem/region/RegionUtils.java b/BauSystem_Main/src/de/steamwar/bausystem/region/RegionUtils.java index 0309cdf9..2a409002 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/region/RegionUtils.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/region/RegionUtils.java @@ -29,7 +29,9 @@ public class RegionUtils { } static void save(Region region) { - region.regionData.add("prototype", region.getPrototype().getName()); + if (region.getPrototype() != null) { + region.regionData.add("prototype", region.getPrototype().getName()); + } region.regionData.add("flagStorage", FlagStorage.toYAPION(region.getFlagStorage())); RegionLoader.save(); }