Log empty packets too

This commit is contained in:
Melledy
2023-11-23 00:26:03 -08:00
parent 74140b39f2
commit b605108ce7

View File

@@ -160,6 +160,11 @@ public class GameSession {
if (this.ukcp != null) {
// Get packet from the server's packet cache. This will allow us to reuse empty packets if needed.
this.ukcp.write(this.getServer().getPacketCache().getCachedPacket(cmdId));
// Log
if (LunarCore.getConfig().getLogOptions().packets) {
logPacket("SEND", cmdId, null);
}
}
}