mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-28 16:06:03 +00:00
Change Permutation Filter (#598)
Co-authored-by: slprime <[email protected]>
This commit is contained in:
1 parent
af55a6b191
commit
0bbb889f39
21 files changed
+453
-251
No files matched your search
@@ -25,16 +25,16 @@ public class BookmarkRecipeId {
|
||||
|
||||
for (Object pos : stacks) {
|
||||
|
||||
if (pos instanceof PositionedStack) {
|
||||
pos = StackInfo.getItemStackWithMinimumDamage(((PositionedStack) pos).items);
|
||||
if (pos instanceof PositionedStack item) {
|
||||
pos = StackInfo.getItemStackWithMinimumDamage(item.items);
|
||||
}
|
||||
|
||||
if (pos instanceof ItemStack) {
|
||||
pos = StackInfo.itemStackToNBT((ItemStack) pos);
|
||||
if (pos instanceof ItemStack item) {
|
||||
pos = StackInfo.itemStackToNBT(item);
|
||||
}
|
||||
|
||||
if (pos instanceof NBTTagCompound) {
|
||||
ingredients.add((NBTTagCompound) pos);
|
||||
if (pos instanceof NBTTagCompound item) {
|
||||
ingredients.add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user