SPIGOT-6666: NPE when deserializing bundle
This commit is contained in:
parent
8dfa97afe4
commit
82f0955b3b
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user