geforkt von Mirrors/AxiomPaperPlugin
Dieser Commit ist enthalten in:
Ursprung
af866deeac
Commit
15fa621147
@ -17,7 +17,7 @@ public class MojBuf {
|
||||
private MojBuf() {}
|
||||
|
||||
public static ByteBuf unpooled() {
|
||||
return new FriendlyByteBuf(Unpooled.buffer(256, Integer.MAX_VALUE));
|
||||
return new FriendlyByteBuf(Unpooled.buffer());
|
||||
}
|
||||
|
||||
private static final Reflection.Method<FriendlyByteBuf, String> readUtf = Reflection.getTypedMethod(FriendlyByteBuf.class, String.class, int.class);
|
||||
|
@ -93,7 +93,9 @@ public class AxiomBigPayloadHandler extends ChannelInboundHandlerAdapter {
|
||||
}
|
||||
|
||||
for(QueuedPacket packet : queue) {
|
||||
AxiomPaper.getListener(packet.name).onMessage(player, packet.in);
|
||||
AxiomPacketListener handler = AxiomPaper.getListener(packet.name);
|
||||
if(handler != null)
|
||||
handler.onMessage(player, packet.in);
|
||||
packet.in.release();
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren