Skip to content

Fix zombie fly when trampling after cancelling EntityInteractEvent - #14225

Open
kacimiamine wants to merge 1 commit into
PaperMC:mainfrom
kacimiamine:fix/zombie-fly-when-trampling
Open

Fix zombie fly when trampling after cancelling EntityInteractEvent#14225
kacimiamine wants to merge 1 commit into
PaperMC:mainfrom
kacimiamine:fix/zombie-fly-when-trampling

Conversation

@kacimiamine

Copy link
Copy Markdown
Contributor

When cancelling EntityInteractEvent, ticksSinceReachedGoal doesn't get updated, making the zombie just hop upwards and never step down (since it doesn't trigger the step down code).

The fix is to ensure ticksSinceReachedGoal gets incremented even after cancelling the event.

Fixes #14224

@kacimiamine
kacimiamine requested a review from a team as a code owner September 1, 2026 09:38
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

Cancel EntityInteractEvent when a zombie tramples a turtle egg makes him fly on top of it.

1 participant