Skip to content

Fix Water Animal spawn height option for Squids and Dolphins#12045

Merged
lynxplay merged 1 commit into
PaperMC:mainfrom
raikasdev:fix/squid-spawning-height
Feb 8, 2025
Merged

Fix Water Animal spawn height option for Squids and Dolphins#12045
lynxplay merged 1 commit into
PaperMC:mainfrom
raikasdev:fix/squid-spawning-height

Conversation

@raikasdev
Copy link
Copy Markdown
Contributor

In 1.21.2 when squids and dolphins got baby variants they were moved from WaterAnimal to AgeableWaterCreature, but the Paper water animal spawn configuration code wasn't updated there.

We found this out when squids didn't spawn in our custom map with a custom sea level, even though it was configured.

@raikasdev raikasdev requested a review from a team as a code owner January 30, 2025 13:17
Copy link
Copy Markdown
Member

@electronicboy electronicboy left a comment

Choose a reason for hiding this comment

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

I ponder if these should replace initialisation rather than overriding them almost immediately, but, otherwise, from a quick look, lgtm

@raikasdev
Copy link
Copy Markdown
Contributor Author

raikasdev commented Jan 30, 2025

I ponder if these should replace initialisation rather than overriding them almost immediately, but, otherwise, from a quick look, lgtm

I was thinking about that myself, but WaterAnimal.java has it like that so I decided not to change it 🤷

@kennytv kennytv added the type: bug Something doesn't work as it was intended to. label Jan 31, 2025
@lynxplay lynxplay merged commit cb6c57e into PaperMC:main Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something doesn't work as it was intended to.

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants