improve chunk palette handling and logging; fix biome format and storage comparison logic

This commit is contained in:
adman
2026-05-04 00:27:00 +02:00
parent 3b1b436ecf
commit e5231dfdb6
4 changed files with 41 additions and 5 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ func (r StorageFormat) Import(data []uint64, bpe uint8, palette []int32) (s *Sto
if !slices.Contains(r.AvailableBpes, bpe) {
var newBpe uint8
for _, newBpe = range r.AvailableBpes {
if bpe < newBpe {
continue
if bpe <= newBpe {
break
}
}
var tmps *Storage