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 Milo = require('milo')
|
||||
local Sound = require('sound')
|
||||
|
||||
@@ -33,8 +33,8 @@ function ExportTask:cycle(context)
|
||||
for key in pairs(entry.filter) do
|
||||
local filterItem = Milo:splitKey(key)
|
||||
if (slot.name == filterItem.name and
|
||||
entry.ignoreDamage or slot.damage == filterItem.damage and
|
||||
entry.ignoreNbtHash or slot.nbtHash == filterItem.nbtHash) then
|
||||
(entry.ignoreDamage or slot.damage == filterItem.damage) and
|
||||
(entry.ignoreNbtHash or slot.nbtHash == filterItem.nbtHash)) then
|
||||
|
||||
local items = Milo:getMatches(filterItem, entry)
|
||||
local _, item = next(items)
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
Plethora scanner
|
||||
Bucket
|
||||
--]]
|
||||
_G.requireInjector(_ENV)
|
||||
|
||||
local Event = require('event')
|
||||
local GPS = require('gps')
|
||||
local Point = require('point')
|
||||
|
||||
Reference in New Issue
Block a user