Port to 1.20.2

This commit is contained in:
nea
2023-09-25 19:24:16 +02:00
parent 2bd3ed1e23
commit 139089d9be
13 changed files with 124 additions and 77 deletions

View File

@@ -29,11 +29,4 @@ public class MixinClientPacketHandler {
packet.isLongDistance()
));
}
@Inject(method = "sendPacket(Lnet/minecraft/network/packet/Packet;)V", at = @At("HEAD"), cancellable = true)
public void onSendPacket(Packet<?> packet, CallbackInfo ci) {
if (OutgoingPacketEvent.Companion.publish(new OutgoingPacketEvent(packet)).getCancelled()) {
ci.cancel();
}
}
}