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_microcontroller/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesecons_microcontroller/init.lua') diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua index f49d9dc..bd71d32 100644 --- a/mesecons_microcontroller/init.lua +++ b/mesecons_microcontroller/init.lua @@ -590,7 +590,8 @@ function yc_action(pos, L) --L-->Lvirtual ..tonumber(L.c and 1 or 0) ..tonumber(L.b and 1 or 0) ..tonumber(L.a and 1 or 0) - mesecon:swap_node(pos, name) + local node = minetest.get_node(pos) + minetest.swap_node(pos, {name = name, param2 = node.param2}) yc_action_setports(pos, L, Lv) end -- cgit v1.2.3