Update VersionUtil.java

This commit is contained in:
CrazyCloudCraft | Argantiu 2022-09-07 17:01:56 +02:00 committed by GitHub
parent f15114b0a4
commit 38b65b1c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ public class VersionUtil {
if (version == 0) {
// Detect version
String v = Bukkit.getVersion();
if (v.contains("1.18"))
if (v.contains("1.19"))
version = 19;
else if (v.contains("1.18"))
version = 18;
else if (v.contains("1.17"))
version = 17;