From a3c8029223e93b74651da91ce8565feb8695855a Mon Sep 17 00:00:00 2001 From: NavidK0 Date: Sat, 13 Jun 2015 09:24:10 -0400 Subject: [PATCH] Updated to 1.8.7, no code changes? --- build.gradle | 2 +- .../me/libraryaddict/disguise/utilities/PacketsManager.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2189cd0a..2e2a417d 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion sourceCompatibility = '1.7' -ext.spigotVersion = '1.8.6-R0.1-SNAPSHOT' +ext.spigotVersion = '1.8.7-R0.1-SNAPSHOT' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' diff --git a/src/main/java/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/main/java/me/libraryaddict/disguise/utilities/PacketsManager.java index 4dacd6dc..66b5a658 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -49,6 +49,7 @@ import com.comphenix.protocol.events.PacketContainer; import com.comphenix.protocol.events.PacketEvent; import com.comphenix.protocol.events.PacketListener; import com.comphenix.protocol.reflect.StructureModifier; +import com.comphenix.protocol.utility.MinecraftReflection; import com.comphenix.protocol.wrappers.WrappedAttribute; import com.comphenix.protocol.wrappers.WrappedAttribute.Builder; import com.comphenix.protocol.wrappers.WrappedDataWatcher; @@ -1270,6 +1271,7 @@ public class PacketsManager { public static PacketContainer[][] transformPacket(PacketContainer sentPacket, Player observer, Entity entity) { PacketContainer[] packets = null; PacketContainer[] delayedPackets = new PacketContainer[0]; + MinecraftReflection.getAttributeSnapshotClass(); try { Disguise disguise = DisguiseAPI.getDisguise(observer, entity); // If disguised.