perf: 重写部分代码

This commit is contained in:
2023-05-30 07:21:03 +08:00
parent 525d99a8bf
commit aa443e0d53

View File

@@ -235,7 +235,7 @@ public final class CoreBukkitUtils {
}
@NotNull
public static String serializeItemStack(@Nullable ItemStack stack) {
public static String serializeItemStack(@NotNull ItemStack stack) {
if (!Bukkit.getPluginManager().isPluginEnabled("ProtocolLib")) {
throw new RuntimeException("ProtocolLib 前置插件未启用, 无法序列化物品!");
}