From 5ae460b3080c977882a5140e33e5cd0ce08dbd50 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Wed, 25 Sep 2024 11:15:50 +0000 Subject: [PATCH] Add stricter match criteria --- items.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/items.lua b/items.lua index d64acfb..ba1ea42 100644 --- a/items.lua +++ b/items.lua @@ -202,7 +202,7 @@ end function FILTER_MATCHING_SLOTS(target) return function(detail) - return detail ~= nil and (target == nil or (checkField(target.name, detail.name) and + return detail ~= nil and detail.count ~= nil and (target == nil or (checkField(target.name, detail.name) and checkField(target.displayName, detail.displayName) and checkField(target.damage, detail.damage) and checkField(target.enchantments, detail.enchantments)))