speed up imports by 100x
This commit is contained in:
@@ -670,6 +670,8 @@ function Storage:import(source, slot, count, item)
|
|||||||
item = entry
|
item = entry
|
||||||
|
|
||||||
local function insert(adapter)
|
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)
|
local amount = rawInsert(adapter, source.adapter, slot, count)
|
||||||
|
|
||||||
if amount > 0 then
|
if amount > 0 then
|
||||||
|
|||||||
Reference in New Issue
Block a user