mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-03 08:00:25 +02:00
Merge two conditions into one
This commit is contained in:
@ -383,8 +383,7 @@ local function find_light_update_conductors()
|
||||
local checked = {}
|
||||
for name, def in pairs(minetest.registered_nodes) do
|
||||
local conductor = mesecon.get_conductor(name)
|
||||
if conductor then
|
||||
if not checked[name] then
|
||||
if conductor and not checked[name] then
|
||||
-- Find the other states of the conductor besides the current one.
|
||||
local other_states
|
||||
if conductor.onstate then
|
||||
@ -414,7 +413,6 @@ local function find_light_update_conductors()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- This is the callback for swap_node_force in turnon and turnoff. It determines
|
||||
|
Reference in New Issue
Block a user