1
0
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:
thetaepsilon-gamedev
2017-10-01 16:54:24 +01:00
parent f3cd1b61d7
commit 0fb0eab723
3 changed files with 37 additions and 12 deletions

View File

@ -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.

View File

@ -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)