Export the blocks data

This commit is contained in:
Tnze
2022-03-13 17:49:08 +08:00
parent cc1cd6874d
commit 1116d87fa0
4 changed files with 3 additions and 22 deletions

View File

@ -48,7 +48,7 @@ type BlockState struct {
}
func (s *BlockState) Block() block.Block {
b, ok := block.DefaultBlock(s.Name)
b, ok := block.FromID[s.Name]
if !ok {
return nil
}