Logistic Request Merger


Merges the logistic requests from one buffer or requester chest into another instead of overriding the request

Utilities
2 years ago
1.1
658

b Crash when pasting an empty reqest

3 years ago

Crash when pasting an empty request.

2 years ago

Still happens.
The mod Logistic Request Merger (1.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event LogisticRequestMerger::on_pre_entity_settings_pasted (ID 32)
LogisticRequestMerger/control.lua:26: bad argument #1 of 2 to 'ipairs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
LogisticRequestMerger/control.lua:26: in function <LogisticRequestMerger/control.lua:16>

2 years ago

Replacing lines 26-30 of control.lua with the following seems to fix it:

if sourceRequest ~= nil then
for _, value in ipairs(sourceRequest) do
if mergeItem(destination, value) ~= true then
addItem(destination, value)
end
end
end

New response