Use element key for grass block

This commit is contained in:
2023-04-13 09:35:10 +03:00
parent 38283540bb
commit 7925b5d65a
2 changed files with 3 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ minetest.register_on_generated(function(minp,maxp,seed)
return
end
local center=vector.new((maxp.x-minp.x)/2+ minp.x,(maxp.y-minp.y)/2+minp.y,(maxp.z-minp.z)/2+minp.z)
local pos=minetest.find_node_near(center,maxp.x-minp.x,{"default:dirt_with_grass"})
local pos=minetest.find_node_near(center,maxp.x-minp.x,{industrialtest.elementKeys.grassBlock})
if pos then
industrialtest.makeRubberTree(pos)
end