summaryrefslogtreecommitdiff
path: root/onion.lua
diff options
context:
space:
mode:
Diffstat (limited to 'onion.lua')
-rw-r--r--onion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/onion.lua b/onion.lua
index b222969..e6eb78b 100644
--- a/onion.lua
+++ b/onion.lua
@@ -94,7 +94,7 @@ minetest.register_abm({
-- grow
node.name = "ethereal:onion_"..minetest.get_item_group(node.name, "onion") + 1
- minetest.set_node(pos, node)
+ minetest.swap_node(pos, node)
end
})