SPIGOT-6666: NPE when deserializing bundle

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-07-23 16:38:51 +10:00
parent dcfc8b355a
commit f294d260b8

View file

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