optimization; command translations; recipeid ingr sorting

This commit is contained in:
slprime committed 2025-08-06 13:37:54 +03:00
1 parent 080e49e2bb
commit d5c3552a9a
13 files changed
+181 -90

No files matched your search

@@ -566,9 +566,7 @@ public class SubsetWidget extends Button implements ItemFilterProvider, IContain
SubsetTag processedTag = new SubsetTag(subsetNamespace, new ItemStackSet());
for (String itemStr : itemStrings) {
try {
if (itemStr.startsWith("; ")) {
final String handlerName = itemStr.substring(2);
String recipeName = handlerName;
@@ -592,11 +590,9 @@ public class SubsetWidget extends Button implements ItemFilterProvider, IContain
((ItemStackSet) processedTag.filter)
.add(StackInfo.loadFromNBT((NBTTagCompound) NBTJson.toNbt(parser.parse(itemStr))));
}
} catch (IllegalArgumentException | JsonSyntaxException | IllegalStateException e) {
NEIClientConfig.logger.error("Failed to load collapsible items from json string:\n{}", itemStr);
}
}
}