anvil chunk to real chunk conversion things

This commit is contained in:
adman
2026-05-02 01:36:29 +02:00
parent d8e36aa6fa
commit d0844dd6b5
3 changed files with 74 additions and 4 deletions
+9
View File
@@ -255,3 +255,12 @@ func CompareStorage(a, b *Storage) bool {
}
return true
}
func CountStorage(s *Storage, v int32) (a int) {
for i := range s.format.Len {
if w, _ := s.Get(i); w == v {
a++
}
}
return
}