From f23603a325cfad46e16550521d4409300af40b49 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Thu, 25 Oct 2018 12:14:05 -0400 Subject: update biome_lib, plantlife (which includes switching to Tenplus1's vines fork), and moretrees --- bushes_classic/nodes.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bushes_classic/nodes.lua') diff --git a/bushes_classic/nodes.lua b/bushes_classic/nodes.lua index bf15596..1babb1d 100644 --- a/bushes_classic/nodes.lua +++ b/bushes_classic/nodes.lua @@ -47,7 +47,7 @@ plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger) elseif groupcaps.snappy then -- plant a new bush without fruits - minetest.set_node(pos, {type = "node", name = "bushes:fruitless_bush"}) + minetest.swap_node(pos, {type = "node", name = "bushes:fruitless_bush"}) local meta = minetest.get_meta(pos) meta:set_string('bush_type', bush_name) @@ -114,7 +114,7 @@ plantlife_bushes.after_place_node = function(pos, placer, itemstack) return end - minetest.set_node(pos, {name = "bushes:fruitless_bush"}) + minetest.swap_node(pos, {name = "bushes:fruitless_bush"}) local meta = minetest.get_meta(pos) meta:set_string("bush_type", name_parts[1]) end @@ -137,7 +137,7 @@ minetest.register_abm({ local is_soil = minetest.get_item_group(dirt.name, "soil") or minetest.get_item_group(dirt.name, "potting_soil") if is_soil and (dirt.name == "farming:soil_wet" or math.random(1,3) == 1) then - minetest.set_node( pos, {name = "bushes:" .. bush_name .. "_bush"}) + minetest.swap_node( pos, {name = "bushes:" .. bush_name .. "_bush"}) end end end -- cgit v1.2.3