Post merge fixes for 1.20.1

This commit is contained in:
DBotThePony 2024-05-31 11:13:53 +07:00
parent 6153c2e972
commit 34b60be434
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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) {