From 8b57d3572d349156e1ac020e5938d69c74cb38b7 Mon Sep 17 00:00:00 2001 From: Kli Kli Date: Fri, 28 Apr 2023 08:35:27 +0200 Subject: [PATCH] fix: tag string filtering Closes #918 --- .../com/github/klikli_dev/occultism/util/StorageUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/klikli_dev/occultism/util/StorageUtil.java b/src/main/java/com/github/klikli_dev/occultism/util/StorageUtil.java index 25fc62d39..a31fee1a0 100644 --- a/src/main/java/com/github/klikli_dev/occultism/util/StorageUtil.java +++ b/src/main/java/com/github/klikli_dev/occultism/util/StorageUtil.java @@ -247,8 +247,8 @@ public static boolean matchesFilter(ItemStack stack, String tagFilter) { filter = filter.substring(4); } final String finalFilter = filter; - boolean equals = stack.getTags().anyMatch(rl -> { - return FilenameUtils.wildcardMatch(rl.toString(), finalFilter, IOCase.INSENSITIVE); + boolean equals = stack.getTags().anyMatch(tag -> { + return FilenameUtils.wildcardMatch(tag.location().toString(), finalFilter, IOCase.INSENSITIVE); }); if (equals) {