Update compiler-minecraft.js

This commit is contained in:
extremeheat 2024-11-16 20:50:50 -05:00 committed by GitHub
parent fc763bb44c
commit 60ba34dded
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ if (n !== 0) {
const { value: n, size: nSize } = ${compiler.callType('varint')}
if (n === 0) {
const base = ${compiler.callType(opts.base.type)}
return { value: { ${opts.base.type}: base.value }, size: base.size + nSize }
return { value: { ${opts.base.name}: base.value }, size: base.size + nSize }
} else {
const set = []
let accSize = nSize