Fix a ClassNotFoundException with AttributeSnapshot

Fixes #56
This commit is contained in:
Dan Mulloy 2015-03-09 16:43:25 -04:00
parent 7291837b9d
commit f72a6d8695

View File

@ -1500,7 +1500,7 @@ public class MinecraftReflection {
*/
public static Class<?> getAttributeSnapshotClass() {
try {
return getMinecraftClass("AttributeSnapshot");
return getMinecraftClass("PacketPlayOutUpdateAttributes$AttributeSnapshot", "AttributeSnapshot");
} catch (RuntimeException e) {
final Class<?> packetUpdateAttributes = PacketRegistry.getPacketClassFromType(PacketType.Play.Server.UPDATE_ATTRIBUTES, true);
final String packetSignature = packetUpdateAttributes.getCanonicalName().replace('.', '/');