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

@ -4,9 +4,9 @@ import (
"io"
"strconv"
"github.com/Tnze/go-mc/level/biome"
"github.com/Tnze/go-mc/level/block"
pk "github.com/Tnze/go-mc/net/packet"
"git.konjactw.dev/falloutBot/go-mc/level/biome"
"git.konjactw.dev/falloutBot/go-mc/level/block"
pk "git.konjactw.dev/falloutBot/go-mc/net/packet"
)
type State interface {
@ -142,12 +142,14 @@ func (p *PaletteContainer[T]) ReadFrom(r io.Reader) (n int64, err error) {
return n, err
}
p.data = NewBitStorage(p.bits, p.data.length, nil)
nn, err = p.data.ReadFrom(r)
n += nn
if err != nil {
return n, err
}
return n, p.data.Fix(p.bits)
return n, nil
}
func (p *PaletteContainer[T]) WriteTo(w io.Writer) (n int64, err error) {