Created
July 9, 2016 13:29
-
-
Save FormallyMyles/d892a90a77303f86415e834b4b0797a0 to your computer and use it in GitHub Desktop.
Changes for ViaVersion API - Using isPorted
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The API now ports all players so that we can send bossbars to 1.9+ | |
This code: | |
if (ViaVersion.getInstance().isPorted(p)) { | |
} | |
Should now be: | |
if (ViaVersion.getInstance().getPlayerVersion(p) > 47) { // Higher than 1.8 | |
} | |
This fixes any issues when using 1.9+ only features like boss bars. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<3 Myles/ViaVersion