Skip to content

Commit

Permalink
Unschooled?
Browse files Browse the repository at this point in the history
  • Loading branch information
astei committed Mar 9, 2022
1 parent bfd6d9f commit 4d6054e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class CustomPayloadS2CPacketFixMemoryLeakMixin {

@Redirect(method = "<init>(Lnet/minecraft/network/PacketByteBuf;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/PacketByteBuf;readBytes(I)Lio/netty/buffer/ByteBuf;"))
private ByteBuf deserialize$shouldExplicitlyCopyAsUnschooledBufferDueToShenanigans(PacketByteBuf instance, int length) {
private ByteBuf deserialize$shouldExplicitlyCopyAsUnpooledBufferDueToShenanigans(PacketByteBuf instance, int length) {
return Unpooled.copiedBuffer(instance.readSlice(length));
}
}

0 comments on commit 4d6054e

Please sign in to comment.