From 139089d9beb134465737c4afff3b1303bf481aa1 Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 25 Sep 2023 19:24:16 +0200 Subject: Port to 1.20.2 --- .../java/moe/nea/firmament/mixins/MixinClientPacketHandler.java | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java') diff --git a/src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java b/src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java index aa6ce38..dbf8c7f 100644 --- a/src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java +++ b/src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java @@ -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(); - } - } } -- cgit