From f72a6d869508ee7dfc18d4d96bbaa163143f29c4 Mon Sep 17 00:00:00 2001 From: Dan Mulloy Date: Mon, 9 Mar 2015 16:43:25 -0400 Subject: [PATCH] Fix a ClassNotFoundException with AttributeSnapshot Fixes #56 --- .../com/comphenix/protocol/utility/MinecraftReflection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java b/ProtocolLib/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java index 4a8950ea..0439f5c0 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java @@ -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('.', '/');