foundation uses swap_node instead of set_node. Thanks to TenPlus1

master
Rochambeau 2018-07-08 12:19:04 +02:00
parent 7b99076dc5
commit ec97c32ca3
1 changed files with 2 additions and 2 deletions

View File

@ -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