From 74054e48287b522f43d43bcd36307b69229cf0b0 Mon Sep 17 00:00:00 2001 From: andrei1058 Date: Sat, 14 Oct 2023 15:01:40 +0200 Subject: [PATCH] fix not loading --- .../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) {