From 2f60a88190dd34641da5a8b5f4933729736d67b1 Mon Sep 17 00:00:00 2001 From: Doan Hiep Date: Sun, 10 Sep 2023 16:57:13 +0700 Subject: [PATCH] fixed adapter version parsing --- .../src/main/java/com/andrei1058/bedwars/BedWars.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bedwars-plugin/src/main/java/com/andrei1058/bedwars/BedWars.java b/bedwars-plugin/src/main/java/com/andrei1058/bedwars/BedWars.java index 64f45dd24..927f12451 100644 --- a/bedwars-plugin/src/main/java/com/andrei1058/bedwars/BedWars.java +++ b/bedwars-plugin/src/main/java/com/andrei1058/bedwars/BedWars.java @@ -596,7 +596,7 @@ private boolean handleWorldAdapter() { try { int major = Integer.parseInt(versionString[0]); int minor = Integer.parseInt(versionString[1]); - int release = versionString.length > 3 ? Integer.parseInt(versionString[3]) : 0; + int release = versionString.length > 2 ? Integer.parseInt(versionString[2]) : 0; String adapterPath; if (major == 2 && minor == 2 && release == 1) {