summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-01 18:30:32 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-01 18:30:32 +0100
commitde44593b414cf024d70027297236f582309daa09 (patch)
treef1a599eabdd1d3485a2d7ccc00a1316e3cdac85a
parent396a4fdacdd6f80e3bba55cd6c26a2ae321179d1 (diff)
downloadpipeworks-de44593b414cf024d70027297236f582309daa09.tar
pipeworks-de44593b414cf024d70027297236f582309daa09.tar.gz
pipeworks-de44593b414cf024d70027297236f582309daa09.tar.bz2
pipeworks-de44593b414cf024d70027297236f582309daa09.tar.xz
pipeworks-de44593b414cf024d70027297236f582309daa09.zip
move flowable registration for airtight entry panel to devices.lua near node definition
-rw-r--r--devices.lua6
-rw-r--r--pipes.lua2
2 files changed, 6 insertions, 2 deletions
diff --git a/devices.lua b/devices.lua
index fd48033..4344c83 100644
--- a/devices.lua
+++ b/devices.lua
@@ -433,6 +433,12 @@ minetest.register_node(nodename_panel_loaded, {
drop = "pipeworks:entry_panel_empty",
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"
minetest.register_node(nodename_sensor_empty, {
diff --git a/pipes.lua b/pipes.lua
index 751d460..46139ed 100644
--- a/pipes.lua
+++ b/pipes.lua
@@ -200,7 +200,6 @@ table.insert(pipes_empty_nodenames, valve_on)
table.insert(pipes_empty_nodenames, valve_off)
table.insert(pipes_empty_nodenames, entry_panel_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)
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, entry_panel_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)
pipeworks.pipes_full_nodenames = pipes_full_nodenames