diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -263,17 +263,18 @@ minetest.register_lbm({ action = function(pos,node) local name = node.name if string.find(name,"insulated") then - name = "mesecons_insulated:insulated_grey_" + name = "mesecons_insulated:insulated_blue_" elseif string.find(name,"corner") then - name = "mesecons_extrawires:insulated_corner_grey_" + name = "mesecons_extrawires:insulated_corner_blue_" elseif string.find(name,"tjunction") then - name = "mesecons_extrawires:insulated_tjunction_grey_" + name = "mesecons_extrawires:insulated_tjunction_blue_" end if string.sub(node.name,-3,-1) == "_on" then node.name = name.."on" else node.name = name.."off" end + node.param2 = (node.param2 % 32) + 128 minetest.swap_node(pos,node) end, }) |