speed up imports by 100x

This commit is contained in:
Kan18
2023-04-16 14:45:45 -04:00
committed by GitHub
parent 693abd4ec6
commit fceb99af0b

View File

@@ -670,6 +670,8 @@ function Storage:import(source, slot, count, item)
item = entry
local function insert(adapter)
if adapter.__used and adapter.__size and adapter.__used == adapter.__size then return 0 end
local amount = rawInsert(adapter, source.adapter, slot, count)
if amount > 0 then