elytra fly + milo stats

This commit is contained in:
kepler155c@gmail.com
2019-02-13 20:17:39 -05:00
parent 68c1e8ccde
commit f30b1b19f9
4 changed files with 455 additions and 12 deletions

View File

@@ -387,6 +387,10 @@ local function rawExport(source, target, item, qty, slot)
local amount = math.min(qty, stack.count)
if amount > 0 then
amount = transfer(key, amount, slot)
if amount > 0 then
source.lastUpdate = os.clock()
target.lastUpdate = os.clock()
end
end
qty = qty - amount
total = total + amount
@@ -460,6 +464,11 @@ local function rawInsert(source, target, slot, qty)
_G._debug(m)
end
if count > 0 then
source.lastUpdate = os.clock()
target.lastUpdate = os.clock()
end
return count
end