From 5584357fee24dd412e1fafe4171442ada94a3c74 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Fri, 26 Jul 2013 03:55:36 +0200 Subject: [PATCH] Pass on the "filtered" parameter in sendServerPacket. FIXES Ticket-111 Looks like our good ol' friend copy-paste betrayed us yet again. I need more unit tests. --- .../com/comphenix/protocol/injector/PacketFilterManager.java | 4 ++-- .../java/com/comphenix/protocol/reflect/VolatileField.java | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/PacketFilterManager.java b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/PacketFilterManager.java index 78e9190b..3a74b70f 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/PacketFilterManager.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/PacketFilterManager.java @@ -624,7 +624,7 @@ public final class PacketFilterManager implements ProtocolManager, ListenerInvok @Override public void sendServerPacket(Player reciever, PacketContainer packet, boolean filters) throws InvocationTargetException { - sendServerPacket(reciever, packet, null, true); + sendServerPacket(reciever, packet, null, filters); } @Override @@ -655,7 +655,7 @@ public final class PacketFilterManager implements ProtocolManager, ListenerInvok @Override public void recieveClientPacket(Player sender, PacketContainer packet, boolean filters) throws IllegalAccessException, InvocationTargetException { - recieveClientPacket(sender, packet, null, true); + recieveClientPacket(sender, packet, null, filters); } @Override diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/reflect/VolatileField.java b/ProtocolLib/src/main/java/com/comphenix/protocol/reflect/VolatileField.java index b165fe3e..3ae21863 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/reflect/VolatileField.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/reflect/VolatileField.java @@ -184,4 +184,9 @@ public class VolatileField { protected void finalize() throws Throwable { revertValue(); } + + @Override + public String toString() { + return "VolatileField [field=" + field + ", container=" + container + ", previous=" + previous + ", current=" + current + "]"; + } }