mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-16 02:04:59 +00:00
optimization; command translations; recipeid ingr sorting
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user