From 6165481f4a12aa5f138d1b2890a898010fa30734 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sat, 22 Jun 2024 13:55:35 +0200 Subject: [PATCH] air-only check --- cmd/maprenderer/main.go | 4 +++- go.mod | 4 ++-- go.sum | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/cmd/maprenderer/main.go b/cmd/maprenderer/main.go index b85405d..252dbde 100644 --- a/cmd/maprenderer/main.go +++ b/cmd/maprenderer/main.go @@ -75,7 +75,9 @@ func NewNodeAccessor(repo block.BlockRepository) types.NodeAccessor { if err != nil { return nil, fmt.Errorf("parse error @ %s: %v", p, err) } - block_mapping[key] = block + if !block.AirOnly { + block_mapping[key] = block + } } known_blocks[key] = true } diff --git a/go.mod b/go.mod index f287f7b..2ccfe4c 100644 --- a/go.mod +++ b/go.mod @@ -3,13 +3,13 @@ module github.com/minetest-go/maprenderer go 1.22.4 require ( - github.com/minetest-go/mapparser v1.0.0 + github.com/minetest-go/mapparser v1.0.1 github.com/stretchr/testify v1.9.0 ) require ( github.com/minetest-go/mtdb v1.1.48 - github.com/minetest-go/types v1.0.3 + github.com/minetest-go/types v1.0.4 ) require ( diff --git a/go.sum b/go.sum index 5ff65f1..1da0e16 100644 --- a/go.sum +++ b/go.sum @@ -21,10 +21,14 @@ github.com/minetest-go/colormapping v1.0.5 h1:axZm0xbOz0RQEIFvZmbxr3kuvebYiG0AAA github.com/minetest-go/colormapping v1.0.5/go.mod h1:6UVusIQTqfWbcru5HTktWwB2BCNHUE3W0VkkRBaMfcw= github.com/minetest-go/mapparser v1.0.0 h1:wQz0DNIb239YalZJr6cnZka+FurYo5sZB/IOfGq7Nno= github.com/minetest-go/mapparser v1.0.0/go.mod h1:MsLonoU5w+V57rQfPoVs9wx0GSyUuIXYC0meJg2HxDI= +github.com/minetest-go/mapparser v1.0.1 h1:dnvTE2ijHU3Bst9R1R7DnhP+eCF9cKbNhpJBTck1zek= +github.com/minetest-go/mapparser v1.0.1/go.mod h1:xWGs8AH+fe1w8319UfUB4KbOXrIDLA7HIEWjZgxUch8= github.com/minetest-go/mtdb v1.1.48 h1:OWMbwH4Hq+RzK9UaW1nSIGWe2E+nZPGO5NDAZVdRWLw= github.com/minetest-go/mtdb v1.1.48/go.mod h1:q2f75o3GV/tAncOwctsQ/1JHFYhvSgKphzsnw5LWU24= github.com/minetest-go/types v1.0.3 h1:FepTTIbfvNDhg1VbualcBhayK2p8bJK6TokLnp8xDMU= github.com/minetest-go/types v1.0.3/go.mod h1:QS2q8tKAiuBe2Rin880ARFt9VokYIJNZV4Z4kHAChU0= +github.com/minetest-go/types v1.0.4 h1:SuM1UPXM2ocngJqZwlxZjnQVJEFxeMyk4bqlEw1BAj4= +github.com/minetest-go/types v1.0.4/go.mod h1:QS2q8tKAiuBe2Rin880ARFt9VokYIJNZV4Z4kHAChU0= github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4= github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=