mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-28 06:20:29 +02:00
move pipe node registration for new flow logic closer to their definition in pipes.lua
This commit is contained in:
@ -24,8 +24,8 @@ end
|
||||
|
||||
local regwarning = function(kind, nodename)
|
||||
local tail = ""
|
||||
if pipeworks.enable_new_flow_logic then tail = " but new_flow_logic not enabled" end
|
||||
pipeworks.logger("[pipeworks] "..kind.." flow logic registry requested for "..nodename..tail)
|
||||
if not pipeworks.enable_new_flow_logic then tail = " but new_flow_logic not enabled" end
|
||||
pipeworks.logger(kind.." flow logic registry requested for "..nodename..tail)
|
||||
end
|
||||
|
||||
-- Register a node as a simple flowable.
|
||||
|
@ -30,12 +30,14 @@ local spigot_off = "pipeworks:spigot"
|
||||
local spigot_on = "pipeworks:spigot_pouring"
|
||||
|
||||
if pipeworks.enable_pipes then
|
||||
--[[
|
||||
for _, pipe in ipairs(pipes_full_nodenames) do
|
||||
register.simple(pipe)
|
||||
end
|
||||
for _, pipe in ipairs(pipes_empty_nodenames) do
|
||||
register.simple(pipe)
|
||||
end
|
||||
]]
|
||||
|
||||
if pipeworks.enable_pipe_devices then
|
||||
register.simple(pump_off)
|
||||
|
Reference in New Issue
Block a user