From 2f5ac4c7caeea0202c41a3e840cd441660ea741e Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 16 Sep 2015 14:52:10 +0100 Subject: Changed deprecated add_node to set_node --- cocoa.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa.lua') 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 -- cgit v1.2.3