Fixed a bug overwriting the NetLoginHandler class with NetServerHandler

This commit is contained in:
Kristian S. Stangeland 2013-02-07 00:23:22 +01:00
parent 351dc7f3df
commit 32282bbe9f

View File

@ -553,7 +553,7 @@ public class MinecraftReflection {
return getMinecraftClass("NetServerHandler", "PlayerConnection");
} catch (RuntimeException e) {
// Use the player connection field
return setMinecraftClass("NetLoginHandler",
return setMinecraftClass("NetServerHandler",
FuzzyReflection.fromClass(getEntityPlayerClass()).
getFieldByType("playerConnection", getNetHandlerClass()).getType()
);