From 1d006d7b65bd11cbe784e4d84e7a64c23f11acec Mon Sep 17 00:00:00 2001 From: osmarks Date: Fri, 27 Jul 2018 14:05:19 +0100 Subject: [PATCH] Fix ID matching --- backend-chests.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend-chests.lua b/backend-chests.lua index 39f1984..5871df7 100644 --- a/backend-chests.lua +++ b/backend-chests.lua @@ -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