From a44e3a5df8e3823e548c59d158f65cd7908a96b7 Mon Sep 17 00:00:00 2001 From: Tim203 Date: Mon, 29 Apr 2024 08:28:46 +0200 Subject: [PATCH] Fixed an oversight that resulted in old versions not working --- .../main/java/org/geysermc/floodgate/util/ClassNames.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/spigot/src/main/java/org/geysermc/floodgate/util/ClassNames.java b/spigot/src/main/java/org/geysermc/floodgate/util/ClassNames.java index 9dbc1497..029b89b1 100644 --- a/spigot/src/main/java/org/geysermc/floodgate/util/ClassNames.java +++ b/spigot/src/main/java/org/geysermc/floodgate/util/ClassNames.java @@ -52,8 +52,6 @@ @SuppressWarnings("PMD.SystemPrintln") public class ClassNames { - public static final String SPIGOT_MAPPING_PREFIX; - public static final Class MINECRAFT_SERVER; public static final Class SERVER_CONNECTION; public static final Class HANDSHAKE_PACKET; @@ -108,7 +106,7 @@ public class ClassNames { // 'org.bukkit.craftbukkit. + version + CraftPlayer' will be .CraftPlayer on new // versions and .v1_8R3.CraftPlayer on older versions String version = versionSplit.length > 3 ? versionSplit[3] + '.' : ""; - SPIGOT_MAPPING_PREFIX = "net.minecraft.server." + version; + String nmsPackage = "net.minecraft.server." + version; // SpigotSkinApplier @@ -117,9 +115,6 @@ public class ClassNames { GET_PROFILE_METHOD = getMethod(craftPlayerClass, "getProfile"); checkNotNull(GET_PROFILE_METHOD, "Get profile method"); - String nmsPackage = SPIGOT_MAPPING_PREFIX + '.'; - - // SpigotInjector MINECRAFT_SERVER = getClassOrFallback( "net.minecraft.server.MinecraftServer",