mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
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:
1 parent
b17dd3c695
commit
acb0b21d6d
1 file changed
+2
-5
@@ -227,12 +227,9 @@ public class NetworkRegistry
|
|||||||
private void handlePacket(Packet250CustomPayload packet, NetworkManager network, Player player)
|
private void handlePacket(Packet250CustomPayload packet, NetworkManager network, Player player)
|
||||||
{
|
{
|
||||||
String channel = packet.field_73630_a;
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user