Tweak OutPacket

This commit is contained in:
P0nk
2021-08-20 12:18:59 +02:00
parent e93428f457
commit d8b0929975
5 changed files with 34 additions and 10 deletions

View File

@@ -33,6 +33,7 @@ import net.netty.InvalidPacketHeaderException;
import net.packet.ByteBufOutPacket;
import net.packet.InPacket;
import net.packet.OutPacket;
import net.packet.Packet;
import net.packet.logging.LoggingUtil;
import net.packet.logging.MapleLogger;
import net.server.Server;
@@ -1467,10 +1468,10 @@ public class MapleClient extends ChannelInboundHandlerAdapter {
}
}
public void sendPacket(OutPacket outPacket) {
public void sendPacket(Packet packet) {
announcerLock.lock();
try {
ioChannel.writeAndFlush(outPacket.getBytes());
ioChannel.writeAndFlush(packet.getBytes());
} finally {
announcerLock.unlock();
}