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