summaryrefslogtreecommitdiff
path: root/dryplants/reedmace.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-10-25 12:14:05 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-10-25 12:14:05 -0400
commitf23603a325cfad46e16550521d4409300af40b49 (patch)
tree7884df937ec836ac4b79d90ab3ed6e068ed2c60d /dryplants/reedmace.lua
parent9d67dc5e829951b288f266a316c0bce06e9ae66e (diff)
downloaddreambuilder_modpack-f23603a325cfad46e16550521d4409300af40b49.tar
dreambuilder_modpack-f23603a325cfad46e16550521d4409300af40b49.tar.gz
dreambuilder_modpack-f23603a325cfad46e16550521d4409300af40b49.tar.bz2
dreambuilder_modpack-f23603a325cfad46e16550521d4409300af40b49.tar.xz
dreambuilder_modpack-f23603a325cfad46e16550521d4409300af40b49.zip
update biome_lib, plantlife (which includes switching
to Tenplus1's vines fork), and moretrees
Diffstat (limited to 'dryplants/reedmace.lua')
-rw-r--r--dryplants/reedmace.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/dryplants/reedmace.lua b/dryplants/reedmace.lua
index ec37442..e5e8b69 100644
--- a/dryplants/reedmace.lua
+++ b/dryplants/reedmace.lua
@@ -34,18 +34,18 @@ abstract_dryplants.grow_reedmace = function(pos)
if minetest.get_node(pos_01).name == "air" -- bug fix
or minetest.get_node(pos_01).name == "dryplants:reedmace_sapling" then
if minetest.get_node(pos_02).name ~= "air" then
- minetest.set_node(pos_01, {name="dryplants:reedmace_top"})
+ minetest.swap_node(pos_01, {name="dryplants:reedmace_top"})
elseif minetest.get_node(pos_03).name ~= "air" then
- minetest.set_node(pos_01, {name="dryplants:reedmace_height_2"})
+ minetest.swap_node(pos_01, {name="dryplants:reedmace_height_2"})
elseif size == 1 then
- minetest.set_node(pos_01, {name="dryplants:reedmace_top"})
+ minetest.swap_node(pos_01, {name="dryplants:reedmace_top"})
elseif size == 2 then
- minetest.set_node(pos_01, {name="dryplants:reedmace_height_2"})
+ minetest.swap_node(pos_01, {name="dryplants:reedmace_height_2"})
elseif size == 3 then
if spikes == 1 then
- minetest.set_node(pos_01, {name="dryplants:reedmace_height_3_spikes"})
+ minetest.swap_node(pos_01, {name="dryplants:reedmace_height_3_spikes"})
else
- minetest.set_node(pos_01, {name="dryplants:reedmace_height_3"})
+ minetest.swap_node(pos_01, {name="dryplants:reedmace_height_3"})
end
end
end
@@ -61,18 +61,18 @@ abstract_dryplants.grow_reedmace_water = function(pos)
minetest.add_entity(pos_01, "dryplants:reedmace_water_entity")
if minetest.get_node(pos_02).name == "air" then -- bug fix
if minetest.get_node(pos_03).name ~= "air" then
- minetest.set_node(pos_02, {name="dryplants:reedmace_top"})
+ minetest.swap_node(pos_02, {name="dryplants:reedmace_top"})
elseif minetest.get_node(pos_04).name ~= "air" then
- minetest.set_node(pos_02, {name="dryplants:reedmace_height_2"})
+ minetest.swap_node(pos_02, {name="dryplants:reedmace_height_2"})
elseif size == 1 then
- minetest.set_node(pos_02, {name="dryplants:reedmace_top"})
+ minetest.swap_node(pos_02, {name="dryplants:reedmace_top"})
elseif size == 2 then
- minetest.set_node(pos_02, {name="dryplants:reedmace_height_2"})
+ minetest.swap_node(pos_02, {name="dryplants:reedmace_height_2"})
elseif size == 3 then
if spikes == 1 then
- minetest.set_node(pos_02, {name="dryplants:reedmace_height_3_spikes"})
+ minetest.swap_node(pos_02, {name="dryplants:reedmace_height_3_spikes"})
else
- minetest.set_node(pos_02, {name="dryplants:reedmace_height_3"})
+ minetest.swap_node(pos_02, {name="dryplants:reedmace_height_3"})
end
end
end
@@ -286,7 +286,7 @@ minetest.register_abm({
if minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name == "air" then
abstract_dryplants.grow_reedmace_water({x = pos.x, y = pos.y - 1, z = pos.z})
end
- minetest.set_node({x=pos.x, y=pos.y, z=pos.z}, {name="default:water_source"})
+ minetest.swap_node({x=pos.x, y=pos.y, z=pos.z}, {name="default:water_source"})
else
abstract_dryplants.grow_reedmace({x = pos.x, y = pos.y - 1, z = pos.z})
end