<patchGroups>
	<minecraft>
		<class id="net.minecraft.network.play.server.SPacketCustomPayload">
			<addMethod code="public String ^method:SPacketCustomPayload/getChannel^() { return this.^field:SPacketCustomPayload/channel^; }"/>
		</class>
		<class id="net.minecraft.network.NettyPacketEncoder">
			<replaceMethodCall method="^method:Packet/writePacketData^"
							   code="{$_ = $proceed($$);org.minimallycorrect.tickprofiler.minecraft.profiling.PacketProfiler.record($0, $1);}">
				encode(Lio/netty/channel/ChannelHandlerContext;L^class:Packet^;Lio/netty/buffer/ByteBuf;)V
			</replaceMethodCall>
		</class>
	</minecraft>
</patchGroups>

<patchGroups>
	<minecraft>
		<class id="net.minecraft.network.play.server.SPacketCustomPayload">
			<addMethod code="public String ^method:SPacketCustomPayload/getChannelName^() { return this.^field:SPacketCustomPayload/channel^; }"/>
		</class>
		<class id="net.minecraft.network.NettyPacketEncoder">
			<replaceMethodCall method="^method:Packet/writePacketData^"
							   code="{$_ = $proceed($$);org.minimallycorrect.tickprofiler.minecraft.profiling.PacketProfiler.record($0, $1);}">
				encode(Lio/netty/channel/ChannelHandlerContext;L^class:Packet^;Lio/netty/buffer/ByteBuf;)V
			</replaceMethodCall>
		</class>
	</minecraft>
</patchGroups>

Fix wrong method name in packet hook patch - getChannel -> getChannelName
Fix wrong method name in packet hook patch - getChannel -> getChannelName
