Don’t use the Sone’s ID but (maybe) also the Sone’s shell’s ID.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Sone.java
index cd9239e..6d729c3 100644 (file)
@@ -336,7 +336,7 @@ public class Sone {
         */
        @Override
        public int hashCode() {
-               return id.hashCode();
+               return getId().hashCode();
        }
 
        /**
@@ -347,7 +347,7 @@ public class Sone {
                if (!(object instanceof Sone)) {
                        return false;
                }
-               return ((Sone) object).id.equals(id);
+               return ((Sone) object).id.equals(getId());
        }
 
        /**