Example of Chunk packet. NOT TESTED

This commit is contained in:
Tnze
2021-03-31 19:08:33 +08:00
parent adf77e2661
commit 075a3d3a0a
3 changed files with 72 additions and 2 deletions

View File

@ -186,7 +186,6 @@ func drawSection(s *save.Chunk, img *image.RGBA) {
return
}
// decode section
//bpb := int(math.Max(4, math.Ceil(math.Log2(float64(len(s.Palette))))))
// decode status
data := *(*[]uint64)(unsafe.Pointer(&s.BlockStates)) // convert []int64 into []uint64