Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize ExistingItemFilter #39

Merged
merged 1 commit into from
Nov 24, 2021
Merged

Optimize ExistingItemFilter #39

merged 1 commit into from
Nov 24, 2021

Conversation

Glease
Copy link

@Glease Glease commented Nov 24, 2021

No description provided.

@Glease Glease requested a review from a team November 24, 2021 08:38
@@ -78,7 +78,7 @@ boolean stackEqual(ItemStack toInsert, ItemStack existing) {
matched = existingId != -1 && existingId == OreDictionary.getOreID(toInsert);
}
if(!matched) {
matched = Item.getIdFromItem(toInsert.getItem()) == Item.getIdFromItem(existing.getItem());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder what couldbe the reason for that

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fluids can be compared by their IDs only. I guess EnderIO author thought the item would be the same.

@Dream-Master Dream-Master merged commit 313b191 into master Nov 24, 2021
@Dream-Master Dream-Master deleted the patch-optimize branch November 24, 2021 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants