milo: fix export when diff item in slot
This commit is contained in:
@@ -1,9 +1,3 @@
|
|||||||
--[[
|
|
||||||
Provides: autocrafting, resource limits, on-demand crafting.
|
|
||||||
]]--
|
|
||||||
|
|
||||||
_G.requireInjector(_ENV)
|
|
||||||
|
|
||||||
local Event = require('event')
|
local Event = require('event')
|
||||||
local Milo = require('milo')
|
local Milo = require('milo')
|
||||||
local Sound = require('sound')
|
local Sound = require('sound')
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ function ExportTask:cycle(context)
|
|||||||
for key in pairs(entry.filter) do
|
for key in pairs(entry.filter) do
|
||||||
local filterItem = Milo:splitKey(key)
|
local filterItem = Milo:splitKey(key)
|
||||||
if (slot.name == filterItem.name and
|
if (slot.name == filterItem.name and
|
||||||
entry.ignoreDamage or slot.damage == filterItem.damage and
|
(entry.ignoreDamage or slot.damage == filterItem.damage) and
|
||||||
entry.ignoreNbtHash or slot.nbtHash == filterItem.nbtHash) then
|
(entry.ignoreNbtHash or slot.nbtHash == filterItem.nbtHash)) then
|
||||||
|
|
||||||
local items = Milo:getMatches(filterItem, entry)
|
local items = Milo:getMatches(filterItem, entry)
|
||||||
local _, item = next(items)
|
local _, item = next(items)
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
Plethora scanner
|
Plethora scanner
|
||||||
Bucket
|
Bucket
|
||||||
--]]
|
--]]
|
||||||
_G.requireInjector(_ENV)
|
|
||||||
|
|
||||||
local Event = require('event')
|
local Event = require('event')
|
||||||
local GPS = require('gps')
|
local GPS = require('gps')
|
||||||
local Point = require('point')
|
local Point = require('point')
|
||||||
|
|||||||
Reference in New Issue
Block a user