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.
This commit is contained in:
Kristian S. Stangeland 2013-07-26 03:55:36 +02:00
parent 260f108749
commit 5584357fee
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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 + "]";
}
}