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

Add spawnable boat variants #5027

Merged
merged 3 commits into from
Aug 2, 2022
Merged

Add spawnable boat variants #5027

merged 3 commits into from
Aug 2, 2022

Conversation

pop4959
Copy link
Member

@pop4959 pop4959 commented Aug 1, 2022

I was quickly looking over the new mobs in 1.19 to make sure we didn't miss anything new, and noticed that boat variants are not covered currently in MobCompat. Apparently this has been the case since 1.9 (when boat variants were added).

Additionally, 1.19 introduces a new enum Boat.Type and deprecates TreeSpecies. We will need to support both for backwards compatibility, but new variants (e.g. mangrove) are only supported using the new enum (in 1.19+). I added a new BoatVariant enum in MobCompat to map between the two (as we currently do for CatType and VillagerProfession).

@pop4959 pop4959 added type: enhancement Features and feature requests. module: main Issues or PRs for the main Essentials module labels Aug 1, 2022
@pop4959 pop4959 added this to the 2.19.5 milestone Aug 1, 2022
@pop4959
Copy link
Member Author

pop4959 commented Aug 1, 2022

I made a slight mistake, the Boat.Type API does exist for 1.19 as long as the server is up-to-date.

Copy link
Member

@mdcfe mdcfe left a comment

Choose a reason for hiding this comment

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

Will let @JRoy review this as well just to be sure

@JRoy JRoy merged commit c56a9e6 into EssentialsX:2.x Aug 2, 2022
@pop4959 pop4959 deleted the mobcompat-boats branch August 2, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: main Issues or PRs for the main Essentials module type: enhancement Features and feature requests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants