From f46bc329de7bfc35f64a17822247372e6fa3a1cb Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 30 Nov 2013 20:20:01 -0500 Subject: Use minetest.swap_node() instead of mesecons' version, Minor code changes here and there to facilitate this. --- mesecons_blinkyplant/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesecons_blinkyplant') diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index edaa547..a7d8301 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -62,7 +62,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", { state = mesecon.state.on }}, on_punch = function(pos, node, puncher) - mesecon:swap_node(pos, "mesecons_blinkyplant:blinky_plant") + minetest.swap_node(pos, {name = "mesecons_blinkyplant:blinky_plant"}) mesecon:receptor_off(pos) end }) -- cgit v1.2.3