Ex server packet debugging.
This commit is contained in:
@ -227,15 +227,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
|
||||
return;
|
||||
}
|
||||
|
||||
if (Config.DEBUG_OUTGOING_PACKETS && (_player != null))
|
||||
{
|
||||
final String name = packet.getClass().getSimpleName();
|
||||
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
|
||||
{
|
||||
PacketLogger.info("[S] " + name);
|
||||
}
|
||||
}
|
||||
|
||||
// Write into the channel.
|
||||
_channel.writeAndFlush(packet);
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
package org.l2jmobius.gameserver.network;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
|
||||
/**
|
||||
@ -310,6 +311,15 @@ public enum OutgoingPackets
|
||||
|
||||
public void writeId(PacketWriter packet)
|
||||
{
|
||||
if (Config.DEBUG_OUTGOING_PACKETS)
|
||||
{
|
||||
final String name = packet.getClass().getSimpleName();
|
||||
if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
|
||||
{
|
||||
PacketLogger.info((_id2 > 0 ? "[S EX] " : "[S] ") + name);
|
||||
}
|
||||
}
|
||||
|
||||
packet.writeC(_id1);
|
||||
if (_id2 > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user