diff --git a/src/main/java/ch/njol/skript/classes/registry/RegistrySerializer.java b/src/main/java/ch/njol/skript/classes/registry/RegistrySerializer.java index ddec6c3225f..2c0796e4218 100644 --- a/src/main/java/ch/njol/skript/classes/registry/RegistrySerializer.java +++ b/src/main/java/ch/njol/skript/classes/registry/RegistrySerializer.java @@ -23,6 +23,7 @@ import org.bukkit.Keyed; import org.bukkit.NamespacedKey; import org.bukkit.Registry; +import org.jetbrains.annotations.NotNull; import java.io.StreamCorruptedException; @@ -40,10 +41,10 @@ public RegistrySerializer(Registry registry) { } @Override - public Fields serialize(R o) { + public @NotNull Fields serialize(R o) { Fields fields = new Fields(); fields.putPrimitive("name", o.getKey().toString()); - return null; + return fields; } @Override