Fix genmaps palette problem
This commit is contained in:
@ -5,6 +5,7 @@ import (
|
||||
_ "embed"
|
||||
"encoding/gob"
|
||||
"fmt"
|
||||
"github.com/Tnze/go-mc/data/block"
|
||||
"image"
|
||||
"image/png"
|
||||
"log"
|
||||
@ -51,3 +52,11 @@ func mkmin(c, n *int) {
|
||||
*c = *n
|
||||
}
|
||||
}
|
||||
|
||||
var idByName = make(map[string]uint32, len(block.ByID))
|
||||
|
||||
func init() {
|
||||
for _, v := range block.ByID {
|
||||
idByName["minecraft:"+v.Name] = uint32(v.ID)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user