foundation uses swap_node instead of set_node. Thanks to TenPlus1
parent
7b99076dc5
commit
ec97c32ca3
|
@ -10,7 +10,7 @@ function settlements.ground(pos) -- role model: Wendelsteinkircherl, Brannenburg
|
|||
cnt = cnt+1
|
||||
if cnt > 50 then break end
|
||||
if cnt>math.random(2,4) then mat = "stone"end
|
||||
minetest.set_node(p2, {name="default:"..mat})
|
||||
minetest.swap_node(p2, {name="default:"..mat})
|
||||
p2.y = p2.y-1
|
||||
end
|
||||
end
|
||||
|
@ -37,7 +37,7 @@ function settlements.foundation(pos, width, depth, height, rotation)
|
|||
minetest.after(1,settlements.ground,p)--(p)
|
||||
else
|
||||
-- minetest.remove_node({x=p5.x+xi, y=p5.y+yi, z=p5.z+zi})
|
||||
minetest.set_node({x=p5.x+xi, y=p5.y+yi, z=p5.z+zi}, {name="air"})
|
||||
minetest.swap_node({x=p5.x+xi, y=p5.y+yi, z=p5.z+zi}, {name="air"})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue