Fix some global issues with rs repeater code
parent
043165ced2
commit
e754eec3f7
|
@ -135,6 +135,11 @@ local delayer_deactivate = function(pos, node)
|
||||||
check_unlock_repeater(pos, node)
|
check_unlock_repeater(pos, node)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local on_rotate
|
||||||
|
if minetest.get_modpath("screwdriver") then
|
||||||
|
on_rotate = screwdriver.disallow
|
||||||
|
end
|
||||||
|
|
||||||
-- Register the 2 (states) x 4 (delay times) delayers
|
-- Register the 2 (states) x 4 (delay times) delayers
|
||||||
|
|
||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
|
@ -213,12 +218,6 @@ else
|
||||||
help = false
|
help = false
|
||||||
end
|
end
|
||||||
|
|
||||||
local on_rotate
|
|
||||||
if minetest.get_modpath("screwdriver") then
|
|
||||||
on_rotate = screwdriver.disallow
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
|
minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
|
||||||
description = "Redstone Repeater",
|
description = "Redstone Repeater",
|
||||||
inventory_image = icon,
|
inventory_image = icon,
|
||||||
|
@ -358,8 +357,6 @@ end
|
||||||
|
|
||||||
minetest.register_node("mesecons_delayer:delayer_off_locked", {
|
minetest.register_node("mesecons_delayer:delayer_off_locked", {
|
||||||
description = "Redstone Repeater (Locked)",
|
description = "Redstone Repeater (Locked)",
|
||||||
inventory_image = icon,
|
|
||||||
wield_image = icon,
|
|
||||||
_doc_items_create_entry = false,
|
_doc_items_create_entry = false,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
-- FIXME: Textures of torch and the lock bar overlap. Nodeboxes are (sadly) not suitable for this.
|
-- FIXME: Textures of torch and the lock bar overlap. Nodeboxes are (sadly) not suitable for this.
|
||||||
|
|
Loading…
Reference in New Issue