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

@ -44,7 +44,7 @@ func init() {
ToStateID = make(map[Block]int, len(states))
StateList = make([]Block, 0, len(states))
for _, state := range states {
block := fromID[state.Name]
block := FromID[state.Name]
if state.Properties.Type != nbt.TagEnd {
err := state.Properties.Unmarshal(&block)
if err != nil {
@ -59,8 +59,3 @@ func init() {
}
BitsPerBlock = bits.Len(uint(len(StateList)))
}
func DefaultBlock(id string) (b Block, ok bool) {
b, ok = fromID[id]
return
}