summaryrefslogtreecommitdiff
path: root/cocoa.lua
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa.lua')
-rw-r--r--cocoa.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa.lua b/cocoa.lua
index 26adc68..3635ff4 100644
--- a/cocoa.lua
+++ b/cocoa.lua
@@ -22,7 +22,7 @@ function place_cocoa(itemstack, placer, pointed_thing, plantname)
end
-- add the node and remove 1 item from the itemstack
- minetest.add_node(pt.above, {name = plantname})
+ minetest.set_node(pt.above, {name = plantname})
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()
-- check for refill