diff --git a/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua b/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua index 024687d365..d6c1f95bb0 100644 --- a/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua @@ -135,6 +135,11 @@ local delayer_deactivate = function(pos, node) check_unlock_repeater(pos, node) end +local on_rotate +if minetest.get_modpath("screwdriver") then + on_rotate = screwdriver.disallow +end + -- Register the 2 (states) x 4 (delay times) delayers for i = 1, 4 do @@ -213,12 +218,6 @@ else help = false end -local on_rotate -if minetest.get_modpath("screwdriver") then - on_rotate = screwdriver.disallow -end - - minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), { description = "Redstone Repeater", inventory_image = icon, @@ -358,8 +357,6 @@ end minetest.register_node("mesecons_delayer:delayer_off_locked", { description = "Redstone Repeater (Locked)", - inventory_image = icon, - wield_image = icon, _doc_items_create_entry = false, drawtype = "nodebox", -- FIXME: Textures of torch and the lock bar overlap. Nodeboxes are (sadly) not suitable for this.