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

Fallback to ViaVersion to convert block state #515

Merged
merged 4 commits into from
May 10, 2020

Conversation

Camotoy
Copy link
Member

@Camotoy Camotoy commented May 8, 2020

Since most users will be using ViaVersion if their server version is below 1.13, this code uses ViaVersion's code to get the correct block state for chunk caching on Bukkit. (And if ViaVersion is not installed, the air block state should be returned instead of giving a NPE)

@Camotoy
Copy link
Member Author

Camotoy commented May 8, 2020

Don't PR this until I take a look at using this with newer versions of ViaVersion.

@Camotoy
Copy link
Member Author

Camotoy commented May 9, 2020

As of right now, ViaVersion compatibility only works with 3.0.0-SNAPSHOT, and it will give an error if you try to use a different version. This PR is safe to review and merge.

@Redned235 Redned235 merged commit d429188 into GeyserMC:master May 10, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants