mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-28 05:35:28 +01:00
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:
parent
260f108749
commit
5584357fee
@ -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
|
||||
|
@ -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 + "]";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user