diff --git a/src/de/craftinc/gates/Gate.java b/src/de/craftinc/gates/Gate.java index 6d513b4..09c383a 100644 --- a/src/de/craftinc/gates/Gate.java +++ b/src/de/craftinc/gates/Gate.java @@ -120,12 +120,13 @@ public class Gate extends BaseGate implements ConfigurationSerializable validate(); // make sure to not write invalid stuff to disk } catch (Exception e) { + Plugin.log("Gate " + this.getId() + " seems to be not valid. It got closed before serializing!"); } Map retVal = new HashMap(); retVal.put(idKey, id); - retVal.put(locationKey, LocationSerializer.serializeLocation(location)); + retVal.put(locationKey, LocationSerializer.serializeLocation(location)); retVal.put(exitKey, LocationSerializer.serializeLocation(exit)); retVal.put(isHiddenKey, isHidden); retVal.put(isOpenKey, isOpen);