From 0b91f54863206736b79a2d2b7a784255f873ac98 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 22 Jan 2024 19:06:47 +0700 Subject: [PATCH] dum --- .../ru/dbotthepony/mc/otm/network/MatteryNetworkChannel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 630c6f16c..62f57ed48 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/network/MatteryNetworkChannel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/network/MatteryNetworkChannel.kt @@ -37,7 +37,7 @@ interface MatteryPacket { abstract class MatteryNetworkChannel(val version: Int, val name: String) { val channel: SimpleChannel = NetworkRegistry - .newSimpleChannel(ResourceLocation(OverdriveThatMatters.MOD_ID, name), { version.toString() }, { it == NetworkRegistry.ACCEPTVANILLA || it == NetworkRegistry.ABSENT.version || it == version.toString() }, { it == version.toString() }) + .newSimpleChannel(ResourceLocation(OverdriveThatMatters.MOD_ID, name), { version.toString() }, { it == NetworkRegistry.ACCEPTVANILLA || it == NetworkRegistry.ABSENT || it == version.toString() }, { it == version.toString() }) fun sendToServer(packet: Any) = channel.send(PacketDistributor.SERVER.noArg(), packet)