Add stricter match criteria

This commit is contained in:
Gabriel Tofvesson 2024-09-25 11:15:50 +00:00
parent 3b25361988
commit 5ae460b308

View File

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