From 60ba34ddedc35768d1c7aded928d1df70f253823 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sat, 16 Nov 2024 20:50:50 -0500 Subject: [PATCH] Update compiler-minecraft.js --- src/datatypes/compiler-minecraft.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datatypes/compiler-minecraft.js b/src/datatypes/compiler-minecraft.js index 5cccdb4..ec812ff 100644 --- a/src/datatypes/compiler-minecraft.js +++ b/src/datatypes/compiler-minecraft.js @@ -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