Always create Shells with IDs.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / PostShell.java
index b0cb8e6..4a4b797 100644 (file)
@@ -34,8 +34,8 @@ public class PostShell extends Post implements Shell<Post> {
        public static final ShellCreator<Post> creator = new ShellCreator<Post>() {
 
                @Override
-               public Shell<Post> createShell() {
-                       return new PostShell();
+               public Shell<Post> createShell(String id) {
+                       return new PostShell().setId(UUID.fromString(id));
                }
        };