Retrieve the correct Minecraft superclass

This commit is contained in:
Kristian S. Stangeland 2013-04-02 14:12:36 +02:00
parent 9a34036d14
commit fb441b4910

View File

@ -249,7 +249,7 @@ class NetworkServerInjector extends PlayerInjector {
}
private Class<?> getFirstMinecraftSuperClass(Class<?> clazz) {
if (clazz.getName().startsWith(MinecraftReflection.getMinecraftPackage()))
if (MinecraftReflection.isMinecraftClass(clazz))
return clazz;
else if (clazz.equals(Object.class))
return clazz;