Archiviert
13
0

Fix a ClassNotFoundException with AttributeSnapshot

Fixes #56
Dieser Commit ist enthalten in:
Dan Mulloy 2015-03-09 16:43:25 -04:00
Ursprung 7291837b9d
Commit f72a6d8695

Datei anzeigen

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