Skip to content

Conversation

@Doc94
Copy link
Member

@Doc94 Doc94 commented Dec 17, 2025

Fixes #13397

Currently the Entity when its created by spawn egg (item or dispenser) call the logic for add all the data from the item to the entity this cause the spawnReason can be override with a default reason and ignoring any future change causing events show the correct reason but the entity method getEntitySpawnReason() show another, this PR check the item before create the entity and in case a not reason was put in the item then override the reason with a proper fallback.

@Doc94 Doc94 requested a review from a team as a code owner December 17, 2025 13:01
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Dec 17, 2025
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.

Mobs from spawn eggs have getEntitySpawnReason() of NATURAL

1 participant