Skip to content

Commit

Permalink
Update VersionUtil.java
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyCloudCraft authored Nov 17, 2024
1 parent f1f6afa commit 00dff5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/butzlabben/world/util/VersionUtil.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package de.butzlabben.world.util;

//import de.butzlabben.world.WorldSystem;
import de.butzlabben.world.WorldSystem;
import org.bukkit.Bukkit;
import org.bukkit.scheduler.BukkitTask;
Expand All @@ -20,7 +19,8 @@ public static int getVersion() {
if (version == 0) {
// Detect version
String v = Bukkit.getVersion();
if (v.contains("1.20")) version = 20;
if (v.contains("1.21")) version = 21;
else if (v.contains("1.19")) version = 20;
else if (v.contains("1.19")) version = 19;
else if (v.contains("1.18")) version = 18;
else if (v.contains("1.17")) version = 17;
Expand Down

0 comments on commit 00dff5a

Please sign in to comment.