1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-28 06:20:29 +02:00

move spigot behaviour registration to devices.lua

This commit is contained in:
thetaepsilon-gamedev
2017-10-01 18:18:47 +01:00
parent a1fc493de1
commit 13383770ef
2 changed files with 13 additions and 4 deletions

View File

@ -42,13 +42,13 @@ if pipeworks.enable_pipes then
if pipeworks.enable_pipe_devices then
--register.simple(pump_off)
--register.simple(pump_on)
register.simple(spigot_on)
register.simple(spigot_off)
--register.simple(spigot_on)
--register.simple(spigot_off)
--register.intake_simple(pump_on, thresholds.pump_pressure)
-- TODO: the code doesn't currently care if the spigot is the visually flowing node or not.
-- So some mechanism to register on/off states would be nice
register.output(spigot_off, thresholds.spigot_min, flowlogic.helpers.output_spigot)
register.output(spigot_on, thresholds.spigot_min, flowlogic.helpers.output_spigot)
--register.output(spigot_off, thresholds.spigot_min, flowlogic.helpers.output_spigot)
--register.output(spigot_on, thresholds.spigot_min, flowlogic.helpers.output_spigot)
end
end