format repo with "gofumpt" tool

This commit is contained in:
Tnze
2022-11-26 20:37:57 +08:00
parent 7814e7b1ab
commit fad92fe364
61 changed files with 333 additions and 268 deletions

View File

@ -13,8 +13,10 @@ import (
type State interface {
~int
}
type BlocksState = block.StateID
type BiomesState int
type (
BlocksState = block.StateID
BiomesState int
)
type PaletteContainer[T State] struct {
bits int
@ -206,6 +208,7 @@ func (b biomesCfg) bits(bits int) int {
return biome.BitsPerBiome
}
}
func (b biomesCfg) create(bits int) palette[BiomesState] {
switch bits {
case 0: