diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-11-30 20:20:01 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-11-30 20:34:55 -0500 |
commit | f46bc329de7bfc35f64a17822247372e6fa3a1cb (patch) | |
tree | 6c2d44b6dfafbda51b8ea4a5cd5d1b91bfe6dfb5 /mesecons_microcontroller | |
parent | 669e3d088030709a60db7e71e6503952fb997677 (diff) |
Use minetest.swap_node() instead of mesecons' version, Minor code changes
here and there to facilitate this.
Diffstat (limited to 'mesecons_microcontroller')
-rw-r--r-- | mesecons_microcontroller/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |