Skip to content

Commit

Permalink
Fix/registry pr whoops (#6805)
Browse files Browse the repository at this point in the history
RegistrySerializer - big whoops

Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
  • Loading branch information
ShaneBeee and sovdeeth authored Jul 1, 2024
1 parent f6f41ca commit 7d84902
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -40,10 +41,10 @@ public RegistrySerializer(Registry<R> 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
Expand Down

0 comments on commit 7d84902

Please sign in to comment.