perf: 重写部分代码
This commit is contained in:
@@ -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 前置插件未启用, 无法序列化物品!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user