summaryrefslogtreecommitdiff
path: root/strawberry.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 /strawberry.lua
parent94873618b17859a6f3cc9c3a02dcc88b511075cf (diff)
Optimize and tidy code.
Diffstat (limited to 'strawberry.lua')
-rw-r--r--strawberry.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/strawberry.lua b/strawberry.lua
index 87833e1..d919cca 100644
--- a/strawberry.lua
+++ b/strawberry.lua
@@ -223,8 +223,8 @@ minetest.register_abm({
-- grow
local height = minetest.get_item_group(node.name, "strawberry") + 1
- minetest.set_node(pos, {name = "ethereal:strawberry_"..height})
+ minetest.swap_node(pos, {name = "ethereal:strawberry_"..height})
end
})
-end \ No newline at end of file
+end