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:
Christian 2012-08-27 17:46:08 -04:00
parent d105213aed
commit 62a7d347e7

View file

@ -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);
}
}