Skip to content

Bug fix for villager breeding not being cancellable #2714

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

MC-Samuel
Copy link
Contributor

mcmonkey4eva
mcmonkey4eva previously approved these changes Apr 7, 2025
Comment on lines 42 to 47
this.<EntityBreedScriptEvent, ElementTag>registerDetermination(null, ElementTag.class, (evt, context, determination) -> {
if (determination.isInt()) {
experience = determination.asInt();
evt.event.setExperience(experience);
}
});
Copy link
Member

Choose a reason for hiding this comment

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

This should be registerOptionalDetermination.
Also there's probably no need for the experience variable vs. just passing determination.asInt() directly?

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.

4 participants