milo: fix export when diff item in slot

This commit is contained in:
kepler155c@gmail.com
2019-01-03 22:29:50 -05:00
parent 706e1351ae
commit d0a7a6e488
3 changed files with 2 additions and 10 deletions

View File

@@ -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)