Skip to content

Commit

Permalink
air-only check
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jun 22, 2024
1 parent b0b3670 commit 6165481
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cmd/maprenderer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 6165481

Please sign in to comment.