From e0d88b736654015ee9c49d21f8e9c44ca741b779 Mon Sep 17 00:00:00 2001 From: ybw0014 Date: Tue, 10 Sep 2024 20:54:22 -0700 Subject: [PATCH] chore: simplify --- .../thebusybiscuit/slimefun4/api/MinecraftVersion.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java b/src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java index 595ff6ecad..8611860411 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java @@ -284,11 +284,8 @@ public boolean isBefore(int minecraftVersion, int patchVersion) { } // major version mismatch - if (this.majorVersion < minecraftVersion) { - return true; - } - if (this.majorVersion > minecraftVersion) { - return false; + if (this.majorVersion != minecraftVersion) { + return this.majorVersion < minecraftVersion; } return this.minorVersion == -1 ? patchVersion > 0 : this.minorVersion < patchVersion;