diff --git a/api/item_storage.lua b/api/item_storage.lua index c91338b..21cbd31 100644 --- a/api/item_storage.lua +++ b/api/item_storage.lua @@ -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]".. diff --git a/logic/item_storage.lua b/logic/item_storage.lua index c2f541f..5e7a997 100644 --- a/logic/item_storage.lua +++ b/logic/item_storage.lua @@ -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 \ No newline at end of file +end diff --git a/logic/network_storage.lua b/logic/network_storage.lua index 3959ee6..525b220 100644 --- a/logic/network_storage.lua +++ b/logic/network_storage.lua @@ -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)