summaryrefslogtreecommitdiff
path: root/water.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-09-16 14:49:45 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2015-09-16 14:49:45 +0100
commitea391e490e992c31aa1a7cace28e965b9e8d848b (patch)
tree4eb3d3309358ac7034b2cd157b305e7de543507f /water.lua
parente2fdb1f31ac2d3462d8381d155ef9ed10383bb77 (diff)
Changed deprecated add_node to set_node
Diffstat (limited to 'water.lua')
-rw-r--r--water.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/water.lua b/water.lua
index 10312e7..aff3a56 100644
--- a/water.lua
+++ b/water.lua
@@ -46,7 +46,7 @@ minetest.register_abm({
interval = 30,
chance = 10,
action = function(pos, node)
- minetest.add_node(pos, {name = "default:mossycobble"})
+ minetest.set_node(pos, {name = "default:mossycobble"})
end
})
@@ -87,11 +87,11 @@ minetest.register_abm({
or node.name == "default:snowblock"
or node.name == "ethereal:icebrick"
or node.name == "ethereal:snowbrick" then
- minetest.add_node(pos, {name = "default:water_source"})
+ minetest.set_node(pos, {name = "default:water_source"})
elseif node.name == "default:snow" then
- minetest.add_node(pos, {name = "default:water_flowing"})
+ minetest.set_node(pos, {name = "default:water_flowing"})
elseif node.name == "default:dirt_with_snow" then
- minetest.add_node(pos, {name = "default:dirt_with_grass"})
+ minetest.set_node(pos, {name = "default:dirt_with_grass"})
end
nodeupdate(pos)
end,
@@ -104,7 +104,7 @@ minetest.register_abm({
interval = 15,
chance = 2,
action = function(pos, node, active_object_count, active_object_count_wider)
- minetest.add_node(pos, {name = "default:dirt"})
+ minetest.set_node(pos, {name = "default:dirt"})
end,
})