Commit eeb9e989 authored by ben9964's avatar ben9964
Browse files

Use correct 1.19.3 nms version

parent ad82d280
......@@ -218,9 +218,14 @@ public class MCCosmeticsPlugin extends LuminePlugin {
String packageName = Bukkit.getServer().getClass().getPackage().getName();
String version = packageName.substring(packageName.lastIndexOf('.') + 1);
if(version.startsWith("v1_19") && !"1.19-R0.1-SNAPSHOT".equals(Bukkit.getBukkitVersion())) {
version = "v1_19_R1_2";
if (version.startsWith("v1_19")){
if("1.19.2-R0.1-SNAPSHOT".equals(Bukkit.getBukkitVersion())) {
version = "v1_19_R1_2";
} else if ("1.19.3-R0.1-SNAPSHOT".equals(Bukkit.getBukkitVersion())){
version = "v1_19_R2";
}
}
try {
final Class<?> clazz = Class.forName("io.lumine.cosmetics.nms.VolatileCodeEnabled_" + version);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment