mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-01-01 10:37:32 +01:00
move flowable registration for airtight entry panel to devices.lua near node definition
This commit is contained in:
parent
396a4fdacd
commit
de44593b41
@ -433,6 +433,12 @@ minetest.register_node(nodename_panel_loaded, {
|
|||||||
drop = "pipeworks:entry_panel_empty",
|
drop = "pipeworks:entry_panel_empty",
|
||||||
on_rotate = pipeworks.fix_after_rotation
|
on_rotate = pipeworks.fix_after_rotation
|
||||||
})
|
})
|
||||||
|
-- FIXME requires-directionality
|
||||||
|
-- TODO: AFAIK the two panels have no visual difference, so are redundant under new flow logic - alias?
|
||||||
|
new_flow_logic_register.simple(nodename_panel_empty)
|
||||||
|
new_flow_logic_register.simple(nodename_panel_loaded)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local nodename_sensor_empty = "pipeworks:flow_sensor_empty"
|
local nodename_sensor_empty = "pipeworks:flow_sensor_empty"
|
||||||
minetest.register_node(nodename_sensor_empty, {
|
minetest.register_node(nodename_sensor_empty, {
|
||||||
|
@ -200,7 +200,6 @@ table.insert(pipes_empty_nodenames, valve_on)
|
|||||||
table.insert(pipes_empty_nodenames, valve_off)
|
table.insert(pipes_empty_nodenames, valve_off)
|
||||||
table.insert(pipes_empty_nodenames, entry_panel_empty)
|
table.insert(pipes_empty_nodenames, entry_panel_empty)
|
||||||
table.insert(pipes_empty_nodenames, flow_sensor_empty)
|
table.insert(pipes_empty_nodenames, flow_sensor_empty)
|
||||||
new_flow_logic_register.simple(entry_panel_empty)
|
|
||||||
new_flow_logic_register.simple(flow_sensor_empty)
|
new_flow_logic_register.simple(flow_sensor_empty)
|
||||||
|
|
||||||
local valve_on_loaded = "pipeworks:valve_on_loaded"
|
local valve_on_loaded = "pipeworks:valve_on_loaded"
|
||||||
@ -209,7 +208,6 @@ local flow_sensor_loaded = "pipeworks:flow_sensor_loaded"
|
|||||||
table.insert(pipes_full_nodenames, valve_on_loaded)
|
table.insert(pipes_full_nodenames, valve_on_loaded)
|
||||||
table.insert(pipes_full_nodenames, entry_panel_loaded)
|
table.insert(pipes_full_nodenames, entry_panel_loaded)
|
||||||
table.insert(pipes_full_nodenames, flow_sensor_loaded)
|
table.insert(pipes_full_nodenames, flow_sensor_loaded)
|
||||||
new_flow_logic_register.simple(entry_panel_loaded)
|
|
||||||
new_flow_logic_register.simple(flow_sensor_loaded)
|
new_flow_logic_register.simple(flow_sensor_loaded)
|
||||||
|
|
||||||
pipeworks.pipes_full_nodenames = pipes_full_nodenames
|
pipeworks.pipes_full_nodenames = pipes_full_nodenames
|
||||||
|
Loading…
Reference in New Issue
Block a user