Fix change reporting. Should be continue and not return.

This commit is contained in:
Olof Larsson 2015-11-23 18:32:55 +01:00
parent 3253aa3810
commit 7e313ab085

View File

@ -883,9 +883,7 @@ public class Coll<E extends Entity<E>> extends CollAbstract<E>
{ {
if (this.isWarningOnLocalAlter() && modification == Modification.LOCAL_ALTER) if (this.isWarningOnLocalAlter() && modification == Modification.LOCAL_ALTER)
{ {
MassiveCore.get().log( MassiveCore.get().log("A local alter was spotted in " + this.getDebugName() + " on " + id);
"A local alter was spotted in " + this.getDebugName() + " on " + id
);
E entity = this.get(id); E entity = this.get(id);
JsonObject lastRaw = entity.getLastRaw(); JsonObject lastRaw = entity.getLastRaw();
JsonObject currentRaw = this.getGson().toJsonTree(entity, this.getEntityClass()).getAsJsonObject(); JsonObject currentRaw = this.getGson().toJsonTree(entity, this.getEntityClass()).getAsJsonObject();
@ -915,7 +913,7 @@ public class Coll<E extends Entity<E>> extends CollAbstract<E>
continue; continue;
} }
JsonElement lastValue = entry.getValue(); 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)); changes.add(String.format("Changed %s: %s -> %s", name, lastValue, currentValue));
} }