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

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

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)

View File

@@ -9,8 +9,6 @@
Plethora scanner
Bucket
--]]
_G.requireInjector(_ENV)
local Event = require('event')
local GPS = require('gps')
local Point = require('point')