Squashed below commits
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Go / Test (1.22) (push) Has been cancelled
Go / Test (^1.22) (push) Has been cancelled

nbt chat message

fixes some bug

chunk temp

relocate module

items id
This commit is contained in:
2025-08-26 02:37:53 +08:00
committed by 蒟蒻
parent f0bb92bdb9
commit 185020e31c
210 changed files with 3174 additions and 1749 deletions

View File

@ -19,6 +19,7 @@ type field struct {
index []int
typ reflect.Type
omitEmpty bool
asDefault bool
asList bool
}
@ -105,7 +106,7 @@ func typeFields(t reflect.Type) (tInfo structFields) {
}
// parse options
var omitEmpty, asList bool
var omitEmpty, asList, asDefault bool
for opts != "" {
var name string
name, opts, _ = strings.Cut(opts, ",")
@ -114,6 +115,8 @@ func typeFields(t reflect.Type) (tInfo structFields) {
omitEmpty = true
case "list":
asList = true
case "default":
asDefault = true
}
}
// Deprecated: use `nbt:",list"` instead.
@ -133,6 +136,7 @@ func typeFields(t reflect.Type) (tInfo structFields) {
index: index,
typ: ft,
omitEmpty: omitEmpty,
asDefault: asDefault,
asList: asList,
}