From 34b60be43472c7b927d1b8ef4c6cef18ae1fed3a Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 31 May 2024 11:13:53 +0700 Subject: [PATCH] Post merge fixes for 1.20.1 --- .../ru/dbotthepony/mc/otm/network/MatteryNetworkChannel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/network/MatteryNetworkChannel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/network/MatteryNetworkChannel.kt index f4e9a1271..d28a9799b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/network/MatteryNetworkChannel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/network/MatteryNetworkChannel.kt @@ -54,7 +54,7 @@ abstract class MatteryNetworkChannel(val version: Int, val name: String) { return } - channel.send(packet, PacketDistributor.TRACKING_ENTITY.with(entity)) + channel.send(PacketDistributor.TRACKING_ENTITY.with { entity }, packet) } fun sendTrackingAndSelf(entity: Entity, packet: Any) { @@ -62,7 +62,7 @@ abstract class MatteryNetworkChannel(val version: Int, val name: String) { return } - channel.send(packet, PacketDistributor.TRACKING_ENTITY_AND_SELF.with(entity)) + channel.send(PacketDistributor.TRACKING_ENTITY_AND_SELF.with { entity }, packet) } fun send(distributor: PacketDistributor.PacketTarget, packet: Any) {