summaryrefslogtreecommitdiff
path: root/sapling.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-01-09 12:25:33 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-01-09 12:25:33 +0000
commitad7b63b86971ccae7b1abc008196c9e9553b54ec (patch)
tree05fe8e2a0ea0e9b8d4939cffaed46e6abb0cf9f4 /sapling.lua
parent94873618b17859a6f3cc9c3a02dcc88b511075cf (diff)
Optimize and tidy code.
Diffstat (limited to 'sapling.lua')
-rw-r--r--sapling.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapling.lua b/sapling.lua
index ac15dbf..05ba759 100644
--- a/sapling.lua
+++ b/sapling.lua
@@ -46,7 +46,7 @@ ethereal.add_tree = function (pos, ofx, ofz, schem)
return
end
-- remove sapling and place schematic
- minetest.set_node(pos, {name = "air"})
+ minetest.swap_node(pos, {name = "air"})
minetest.place_schematic(
{x = pos.x - ofx, y = pos.y, z =pos.z - ofz},
schem, "random", {}, false