Skip to content

Commit

Permalink
Fixed an oversight that resulted in old versions not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed Apr 29, 2024
1 parent 7a55305 commit a44e3a5
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand All @@ -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",
Expand Down

0 comments on commit a44e3a5

Please sign in to comment.