mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-10-06 11:37:46 +02:00
parent
7291837b9d
commit
f72a6d8695
@ -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('.', '/');
|
||||||
|
Loading…
Reference in New Issue
Block a user