Skip to content

Commit 0fd5781

Browse files
authored
1 parent 61c1993 commit 0fd5781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function loader (registryOrVersion) {
6868
}
6969

7070
static toNotch (item, serverAuthoritative = true) {
71-
const hasNBT = item.nbt && Object.keys(item.nbt.value).length > 0
71+
const hasNBT = item && item.nbt && Object.keys(item.nbt.value).length > 0
7272

7373
if (registry.type === 'pc') {
7474
if (registry.supportFeature('itemSerializationAllowsPresent')) {

0 commit comments

Comments
 (0)