Make Toolbox always allow storing from network
This commit is contained in:
parent
8d7a5ded51
commit
d26a65e614
@ -20,7 +20,7 @@ local function get_item_storage_formspec(pos)
|
||||
"size[20.5,16]" ..
|
||||
logistica.ui.background..
|
||||
"label[5.3,10.6;"..S("Tool Box: Accepts only tools, no stackable items").."]"..
|
||||
logistica.ui.on_off_btn(isOn, 16.0, 11.0, ON_OFF_BUTTON, S("Allow Storing from Network"))..
|
||||
-- logistica.ui.on_off_btn(isOn, 16.0, 11.0, ON_OFF_BUTTON, S("Allow Storing from Network"))..
|
||||
"dropdown[16,12;2,0.8;"..SORT_PICKER..";"..sortValues..";"..selectedSortIdx..";false]"..
|
||||
"button[18.5,12;1,0.8;"..SORT_BUTTON..";"..S("Sort").."]"..
|
||||
"list["..posForm..";main;0.4,0.5;16,8;0]"..
|
||||
|
@ -37,4 +37,4 @@ function logistica.sort_item_storage_list(meta)
|
||||
local sortedList = sortFunc(list)
|
||||
if not sortedList then return end
|
||||
inv:set_list(ITEM_STORAGE_LIST, sortedList)
|
||||
end
|
||||
end
|
||||
|
@ -197,7 +197,7 @@ end
|
||||
|
||||
-- try to insert the item into the item storage, returning a stack of remaining items
|
||||
function logistica.insert_item_into_item_storage(pos, inv, inputStack, dryRun)
|
||||
if logistica.is_machine_on(pos) and inputStack:get_stack_max() == 1 and inv:room_for_item("main", inputStack) then
|
||||
if inputStack:get_stack_max() == 1 and inv:room_for_item("main", inputStack) then
|
||||
-- tool storage only takes individual items
|
||||
if not dryRun then
|
||||
inv:add_item("main", inputStack)
|
||||
|
Loading…
x
Reference in New Issue
Block a user