Fix NPE with enchantable (#11557)

This commit is contained in:
Lulu13022002
2024-11-09 23:26:01 +01:00
parent bbc8fc8fec
commit 16f8d0f984
41 changed files with 161 additions and 110 deletions

View File

@@ -7,8 +7,8 @@ import io.papermc.paper.registry.RegistryKey;
import io.papermc.paper.registry.TypedKey;
import net.kyori.adventure.key.Key;
import org.bukkit.Sound;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.jetbrains.annotations.ApiStatus;
import org.jspecify.annotations.NullMarked;
/**
* Vanilla keys for {@link RegistryKey#SOUND_EVENT}.
@@ -24,6 +24,7 @@ import org.jetbrains.annotations.ApiStatus;
"SpellCheckingInspection"
})
@GeneratedFrom("1.21.3")
@NullMarked
@ApiStatus.Experimental
public final class SoundEventKeys {
/**
@@ -11481,7 +11482,7 @@ public final class SoundEventKeys {
private SoundEventKeys() {
}
private static @NonNull TypedKey<Sound> create(final @NonNull Key key) {
private static TypedKey<Sound> create(final Key key) {
return TypedKey.create(RegistryKey.SOUND_EVENT, key);
}
}