From 7e313ab085edafe0335600e0f1793545a0bb6bbf Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Mon, 23 Nov 2015 18:32:55 +0100 Subject: [PATCH] Fix change reporting. Should be continue and not return. --- src/com/massivecraft/massivecore/store/Coll.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/massivecraft/massivecore/store/Coll.java b/src/com/massivecraft/massivecore/store/Coll.java index 79532907..872192c5 100644 --- a/src/com/massivecraft/massivecore/store/Coll.java +++ b/src/com/massivecraft/massivecore/store/Coll.java @@ -883,9 +883,7 @@ public class Coll> extends CollAbstract { if (this.isWarningOnLocalAlter() && modification == Modification.LOCAL_ALTER) { - MassiveCore.get().log( - "A local alter was spotted in " + this.getDebugName() + " on " + id - ); + MassiveCore.get().log("A local alter was spotted in " + this.getDebugName() + " on " + id); E entity = this.get(id); JsonObject lastRaw = entity.getLastRaw(); JsonObject currentRaw = this.getGson().toJsonTree(entity, this.getEntityClass()).getAsJsonObject(); @@ -915,7 +913,7 @@ public class Coll> extends CollAbstract continue; } JsonElement lastValue = entry.getValue(); - if (MStore.equal(currentValue, lastValue)) return; + if (MStore.equal(currentValue, lastValue)) continue; changes.add(String.format("Changed %s: %s -> %s", name, lastValue, currentValue)); }