Fix spelling error
This commit is contained in:
parent
4005b937ee
commit
77af7893b7
@ -92,7 +92,7 @@ function Storage:findInsertTargets(sourceStack)
|
||||
local result = self:find(function(stack) return sourceStack:canTransfer(stack) end)
|
||||
|
||||
-- Insertion should prioritize filling populated stacks
|
||||
table.sort(result, function(a, b) return a:getcount() > b:getCount() end)
|
||||
table.sort(result, function(a, b) return a:getCount() > b:getCount() end)
|
||||
|
||||
return result
|
||||
end
|
||||
@ -102,7 +102,7 @@ function Storage:findExtractTargets(targetStack)
|
||||
local result = self:find(function(stack) return (not stack:isEmpty()) and stack:canTransfer(targetStack) end)
|
||||
|
||||
-- Extraction should prioritize emptying populated stacks
|
||||
table.sort(result, function(a, b) return a:getcount() < b:getCount() end)
|
||||
table.sort(result, function(a, b) return a:getCount() < b:getCount() end)
|
||||
|
||||
return result
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user