SPIGOT-6666: NPE when deserializing bundle

This commit is contained in:
md_5 2021-07-23 16:38:51 +10:00
parent 8dfa97afe4
commit 82f0955b3b
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -62,7 +62,7 @@ public class CraftMetaBundle extends CraftMetaItem implements BundleMeta {
if (items != null) { if (items != null) {
for (Object stack : items) { for (Object stack : items) {
if (stack instanceof ItemStack) { if (stack instanceof ItemStack) {
this.items.add((ItemStack) stack); addItem((ItemStack) stack);
} }
} }
} }