While running this code from a mod I am developing:
Code: Select all
local fb = entity.fluidbox
for i = 1, #fb do
log(entity.name .. " " .. #fb .. " " .. i)
local filter = fb.get_filter(i)
...
Code: Select all
24.984 Script @__fluid-connection-indicators__/control.lua:85: flamethrower-turret 2 1
24.984 Script @__fluid-connection-indicators__/control.lua:85: flamethrower-turret 2 2
24.993 Error MainLoop.cpp:1391: Exception at tick 1105: The mod Fluid Connection Indicators (0.1.2) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event fluid-connection-indicators::on_built_entity (ID 6)
Passed index is out of range.
stack traceback:
[C]: in function 'get_filter'
__fluid-connection-indicators__/control.lua:86: in function 'update_entity'
__fluid-connection-indicators__/control.lua:115: in function <__fluid-connection-indicators__/control.lua:109>