mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 04:09:43 +00:00
Optimize ExistingItemFilter
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user