Save modification counter.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 4 Nov 2010 21:43:02 +0000 (22:43 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 4 Nov 2010 21:43:02 +0000 (22:43 +0100)
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();