We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61c1993 commit 0fd5781Copy full SHA for 0fd5781
index.js
@@ -68,7 +68,7 @@ function loader (registryOrVersion) {
68
}
69
70
static toNotch (item, serverAuthoritative = true) {
71
- const hasNBT = item.nbt && Object.keys(item.nbt.value).length > 0
+ const hasNBT = item && item.nbt && Object.keys(item.nbt.value).length > 0
72
73
if (registry.type === 'pc') {
74
if (registry.supportFeature('itemSerializationAllowsPresent')) {
0 commit comments