Save modification counter.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index e44cf55..16d4a2c 100644 (file)
@@ -599,6 +599,7 @@ public class Core implements IdentityListener {
                        /* save Sone into configuration. */
                        String sonePrefix = "Sone/" + sone.getId();
                        configuration.getLongValue(sonePrefix + "/Time").setValue(sone.getTime());
+                       configuration.getLongValue(sonePrefix + "/ModificationCounter").setValue(sone.getModificationCounter());
 
                        /* save profile. */
                        Profile profile = sone.getProfile();