Presets: Custom Subsets Mode (#671)

This commit is contained in:
slprime authored and GitHub committed 2025-08-22 12:22:09 +00:00
1 parent fa6fd01a3a
commit c1f7489de1
8 files changed
+132 -20

No files matched your search

@@ -426,6 +426,17 @@ public class SubsetWidget extends Button implements ItemFilterProvider, IContain
}
}
public static void removeTag(String path) {
updateState.stop();
synchronized (tags) {
tags.keySet().removeIf(
parentpath -> parentpath.equals(path.toLowerCase())
|| parentpath.startsWith(path.toLowerCase() + "."));
updateHiddenItems();
}
}
public static boolean isHidden(ItemStack item) {
try {
if (hiddenReadLock.tryLock(5, TimeUnit.SECONDS)) {