mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
The new 1.10 version looks like version 0 (#504)
Instead of just grabbing the last char, grab the last part of the string (after the .) and parseInt that. Then the numeric version compares will return the right class.
This commit is contained in:
parent
913780cb85
commit
dd84fc1c57
1 changed files with 1 additions and 1 deletions
|
@ -1148,7 +1148,7 @@ public enum ParticleEffect {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
version = Integer.parseInt(Character.toString(PackageType.getServerVersion().charAt(3)));
|
||||
version = Integer.parseInt(PackageType.getServerVersion().substring(PackageType.getServerVersion().lastIndexOf('.') + 1));
|
||||
if (version > 7) {
|
||||
enumParticle = PackageType.MINECRAFT_SERVER.getClass("EnumParticle");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue