feat: Started on palette implementation

This commit is contained in:
Nicholas Novak
2023-12-10 22:37:37 -08:00
parent 88100b58ea
commit 255475c77c
4 changed files with 89 additions and 15 deletions

View File

@@ -25,7 +25,7 @@ func (hs *HashServer) SetStorageRoot(path string) {
for _, section := range data.Sections {
for blockIndex, blockState := range section.BlockStates {
pos := data.IndexToBlockPos(blockIndex)
hs.blocks[pos] = blockState
hs.blocks[pos] = section.Palette.State(blockState)
}
}
}