Optimize ExistingItemFilter

This commit is contained in:
Glease committed 2021-11-24 16:37:59 +08:00
1 parent 1403f7ba8a
commit 0a93c81bb9
2 files changed
+2 -2

No files matched your search

@@ -78,7 +78,7 @@ public class ExistingItemFilter implements IItemFilter {
matched = existingId != -1 && existingId == OreDictionary.getOreID(toInsert);
}
if(!matched) {
matched = Item.getIdFromItem(toInsert.getItem()) == Item.getIdFromItem(existing.getItem());
matched = toInsert.getItem() == existing.getItem();
if(matched && matchMeta) {
matched = toInsert.getItemDamage() == existing.getItemDamage();
}