mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-07-03 00:20:48 +02:00
Pass pointer to Colors struct around which makes it easier to eg. find transparent colors.
This commit is contained in:
@ -76,7 +76,7 @@ func main() {
|
||||
|
||||
numBlocks := 0
|
||||
drawBlock := func(block *common.Block) {
|
||||
if err := yOrder.RenderBlock(block, colors.NameIndex); err != nil {
|
||||
if err := yOrder.RenderBlock(block, colors); err != nil {
|
||||
log.Printf("WARN: rendering block failed: %s", err)
|
||||
}
|
||||
numBlocks++
|
||||
@ -93,7 +93,7 @@ func main() {
|
||||
if err = client.QueryCuboid(cuboid, drawBlock); err != nil {
|
||||
log.Fatalf("query failed: %s", err)
|
||||
}
|
||||
if err = yOrder.Drain(colors.NameIndex); err != nil {
|
||||
if err = yOrder.Drain(colors); err != nil {
|
||||
log.Printf("WARN: rendering block failed: %s", err)
|
||||
}
|
||||
if renderer.IsFilled() {
|
||||
|
Reference in New Issue
Block a user