Compare commits

...

3 commits

Author SHA1 Message Date
Romain Beaumont
3ad4a1f0b7
Merge 60ba34dded into 590dc33fed 2024-11-17 01:50:53 +00:00
extremeheat
60ba34dded
Update compiler-minecraft.js 2024-11-16 20:50:50 -05:00
dependabot[bot]
590dc33fed
Bump @types/node from 20.16.15 to 22.7.9 (#1345)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.16.15 to 22.7.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-27 21:29:40 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@
}, },
"browser": "src/browser.js", "browser": "src/browser.js",
"devDependencies": { "devDependencies": {
"@types/node": "^20.2.1", "@types/node": "^22.7.9",
"espower-loader": "^1.0.0", "espower-loader": "^1.0.0",
"intelli-espower-loader": "^1.0.0", "intelli-espower-loader": "^1.0.0",
"minecraft-packets": "^1.1.5", "minecraft-packets": "^1.1.5",

View file

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