From 069783a3537a1287eefe705a95c50b12231e0ad9 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 26 Nov 2022 23:49:35 +0100 Subject: [PATCH] Fix getEntityClass full qualifier (#1967) --- .../com/comphenix/protocol/utility/MinecraftReflection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java b/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java index a0d98a65..8e411742 100644 --- a/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java +++ b/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java @@ -540,7 +540,7 @@ public final class MinecraftReflection { */ public static Class getEntityClass() { try { - return getMinecraftClass("server.level.Entity", "server.level.ServerEntity", "Entity"); + return getMinecraftClass("world.entity.Entity", "Entity"); } catch (RuntimeException e) { return fallbackMethodReturn("Entity", "entity.CraftEntity", "getHandle"); }