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

AoF7 players reporting empty value for "elytra_boost_advancement" does *not* re-enable vanilla elytra boost behavior for all players #15

Open
SubordinalBlue opened this issue Aug 20, 2024 · 6 comments

Comments

@SubordinalBlue
Copy link

SubordinalBlue commented Aug 20, 2024

In AoF7, we've pushed out an update to set "elytra_boost_advancement" to "".

Now getting reports this is not working as intended.

In the second link, from AOE discord, the player reports that their server console prints the following when trying to rocket boost elytra:

[Server thread/ERROR]: Failed to handle packet net.minecraft.class_2886@4cab1a4b, suppressing error
java.lang.NullPointerException: null
@SubordinalBlue SubordinalBlue changed the title Players reporting empty value for "elytra_boost_advancement" does *not* re-enable vanilla elytra boost behavior for all players AoF7 players reporting empty value for "elytra_boost_advancement" does *not* re-enable vanilla elytra boost behavior for all players Aug 20, 2024
@Linguardium
Copy link

seems to be caused by

if (player.getAdvancementTracker().getProgress(freetheend).isDone() && player.isFallFlying()) {

getAdvancementLoader().get(new Identifier("")) will never find an Advancement. at best case freetheend is null after this
getProgress(freetheend) will throw a NPE from the map lookup this.progress.get(advancement) due to the null key

@Lyof429
Copy link
Owner

Lyof429 commented Aug 20, 2024

This is an issue indeed, sorry for it
I'm changing it rn so that if the advancement can't be found, it considers boosting as allowed no matter what
The fixed version will be released in a few days, i have a few others things to modify
In the meantime, setting this value to an early game advancement like "minecraft:story/root" should allow elytras from the ground up without causing crashes

@SubordinalBlue
Copy link
Author

Just wanna say, thank you!
A reply with details and a work-around for the immediate time being: 👍

@Lyof429
Copy link
Owner

Lyof429 commented Aug 20, 2024

You're welcome, thank you for reporting it!

@SubordinalBlue
Copy link
Author

<small, polite bump>

@Lyof429
Copy link
Owner

Lyof429 commented Aug 29, 2024

Just published the fixed version!
https://modrinth.com/mod/ends-phantasm
Sorry for the wait, let me know if you find any other issue ^^

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

No branches or pull requests

3 participants