1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-29 11:39:16 +00:00

Don't remove spigot class name for CraftPlayer

This commit is contained in:
Aurora
2025-06-20 19:24:49 +01:00
committed by Aurora
parent 5c426b471d
commit 2f9ecc8792

View File

@@ -114,8 +114,10 @@ public class ClassNames {
// SpigotSkinApplier
Class<?> craftPlayerClass = ReflectionUtils.getClass(
"org.bukkit.craftbukkit.entity.CraftPlayer");
Class<?> craftPlayerClass = getClassOrFallback(
"org.bukkit.craftbukkit.entity.CraftPlayer",
"org.bukkit.craftbukkit." + version + "entity.CraftPlayer"
);
GET_PROFILE_METHOD = getMethod(craftPlayerClass, "getProfile");
checkNotNull(GET_PROFILE_METHOD, "Get profile method");