remove unused address parameter from LoginRaw and fix biome palette length calculation

This commit is contained in:
adman
2026-05-02 15:52:06 +02:00
parent d0844dd6b5
commit 1a5f4f4f8e
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func (c Chunk) ToStorage(version string) (toChunk *level.Chunk, err error) {
// this is probably fine
uintSlice := unsafe.Slice((*uint64)(unsafe.Pointer(unsafe.SliceData(s.Biomes.Data))), len(s.Biomes.Data))
toChunk.Sections[i].Biomes, err = f.Import(uintSlice, util.BpeByNum(float64(len(s.BlockStates.Palette))), pallete)
toChunk.Sections[i].Biomes, err = f.Import(uintSlice, util.BpeByNum(float64(len(pallete))), pallete)
if err != nil {
return
}