From 326b0971f517ca80c149fd842c7d97c28912be6b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 20 Jan 2017 02:03:01 +0100 Subject: [PATCH] Fix more global fuckups --- mods/redstone/mesecons/wires.lua | 2 +- mods/stairs/init.lua | 23 ----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/mods/redstone/mesecons/wires.lua b/mods/redstone/mesecons/wires.lua index de626e9ce..deefc01dc 100644 --- a/mods/redstone/mesecons/wires.lua +++ b/mods/redstone/mesecons/wires.lua @@ -211,7 +211,7 @@ function mesecon:update_autoconnect(pos, secondcall, replace_old) mesecon:update_autoconnect(zmympos, true) end - nodename = minetest.get_node(pos).name + local nodename = minetest.get_node(pos).name if string.find(nodename, "mesecons:wire_") == nil and not replace_old then return nil end if mesecon:rules_link_anydir(pos, xppos) then xp = 1 else xp = 0 end diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index 05de6bc4c..6e5de63b7 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -184,29 +184,6 @@ function stairs.register_slab(subname, recipeitem, groups, images, description, end --- Optionally replace old "upside_down" nodes with new param2 versions. --- Disabled by default. - -if replace then - minetest.register_abm({ - label = "Slab replace", - nodenames = {"group:slabs_replace"}, - interval = 16, - chance = 1, - action = function(pos, node) - node.name = minetest.registered_nodes[node.name].replace_name - node.param2 = node.param2 + 20 - if node.param2 == 21 then - node.param2 = 23 - elseif node.param2 == 23 then - node.param2 = 21 - end - minetest.set_node(pos, node) - end, - }) -end - - -- Stair/slab registration function. -- Nodes will be called stairs:{stair,slab}_