9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 02:19:23 +00:00

Update BukkitItemManager.java

This commit is contained in:
XiaoMoMi
2025-07-11 04:20:29 +08:00
parent f4906abe0d
commit 0e76a1a939

View File

@@ -324,10 +324,6 @@ public class BukkitItemManager extends AbstractItemManager<ItemStack> {
}
private ItemStack createVanillaItemStack(Key id) {
NamespacedKey key = NamespacedKey.fromString(id.toString());
if (key == null) {
return null;
}
Object item = FastNMS.INSTANCE.method$Registry$getValue(MBuiltInRegistries.ITEM, KeyUtils.toResourceLocation(id));
if (item == null) {
return null;