Fix so we always send received packets to handlers.
Renders 250 filtering useless unless i can figure a way to intercept *outbound* packets that isn't as messy as I'm contemplating
This commit is contained in:
parent
d105213aed
commit
62a7d347e7
1 changed files with 2 additions and 5 deletions
|
@ -227,12 +227,9 @@ public class NetworkRegistry
|
|||
private void handlePacket(Packet250CustomPayload packet, NetworkManager network, Player player)
|
||||
{
|
||||
String channel = packet.field_73630_a;
|
||||
if (activeChannels.containsEntry(player, channel))
|
||||
for (IPacketHandler handler : Iterables.concat(universalPacketHandlers.get(channel), player instanceof EntityPlayerMP ? serverPacketHandlers.get(channel) : clientPacketHandlers.get(channel)))
|
||||
{
|
||||
for (IPacketHandler handler : Iterables.concat(universalPacketHandlers.get(channel), player instanceof EntityPlayerMP ? serverPacketHandlers.get(channel) : clientPacketHandlers.get(channel)))
|
||||
{
|
||||
handler.onPacketData(network, packet, player);
|
||||
}
|
||||
handler.onPacketData(network, packet, player);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue