Fix ID matching

This commit is contained in:
osmarks 2018-07-27 14:05:19 +01:00
parent bde307b288
commit 1d006d7b65
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ local function find_by_ID_meta_NBT(ID, meta, NBT)
return find(function(item)
return
(not meta or item.damage == meta) and -- if metadata provided, ensure match
(not id or item.name == ID) and -- if internal name provided, ensure match
(not ID or item.name == ID) and -- if internal name provided, ensure match
(not NBT or item.nbtHash == NBT) -- if NBT hash provided, ensure match
end)
end