summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-09-16 14:52:10 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2015-09-16 14:52:10 +0100
commit2f5ac4c7caeea0202c41a3e840cd441660ea741e (patch)
treef1fd08d1831f788eb11b2dcaaf9ba6e37c90b3c5
parenta14fc6f3ad0a802dd7e6da71da06cba37a9fb23b (diff)
Changed deprecated add_node to set_node
-rw-r--r--cocoa.lua2
-rw-r--r--init.lua2
2 files changed, 2 insertions, 2 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
diff --git a/init.lua b/init.lua
index d26b8d4..e523148 100644
--- a/init.lua
+++ b/init.lua
@@ -458,7 +458,7 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname)
-- if not protected then add node and remove 1 item from the itemstack
if not minetest.is_protected(pt.above, placer:get_player_name()) then
- minetest.add_node(pt.above, {name = plantname, param2 = 1})
+ minetest.set_node(pt.above, {name = plantname, param2 = 1})
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()
-- check for refill