From 4f4b1491cc8790691ccd0625ef8596d6e1f606a7 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Sat, 2 Nov 2024 20:48:00 +0700 Subject: [PATCH] chore: Remove unncessary else if --- .../mixin/network/ClientCommonPacketListenerMixin.java | 2 +- .../mixin/network/ServerCommonPacketListenerMixin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/null2264/cobblegen/mixin/network/ClientCommonPacketListenerMixin.java b/src/main/java/io/github/null2264/cobblegen/mixin/network/ClientCommonPacketListenerMixin.java index 1af076d..c97322b 100644 --- a/src/main/java/io/github/null2264/cobblegen/mixin/network/ClientCommonPacketListenerMixin.java +++ b/src/main/java/io/github/null2264/cobblegen/mixin/network/ClientCommonPacketListenerMixin.java @@ -84,7 +84,7 @@ private void handleDisconnect(Component reason, CallbackInfo ci) { //$$ } //$$ return original; //$$ } - //#else if MC>=1.20.5 + //#else //$$ @WrapOperation( //$$ method = "send", //$$ at = @At(value = "INVOKE", target = "Lnet/neoforged/neoforge/network/registration/NetworkRegistry;checkPacket(Lnet/minecraft/network/protocol/Packet;Lnet/minecraft/network/protocol/common/ClientCommonPacketListener;)V") diff --git a/src/main/java/io/github/null2264/cobblegen/mixin/network/ServerCommonPacketListenerMixin.java b/src/main/java/io/github/null2264/cobblegen/mixin/network/ServerCommonPacketListenerMixin.java index f9cd64b..9dd1c46 100644 --- a/src/main/java/io/github/null2264/cobblegen/mixin/network/ServerCommonPacketListenerMixin.java +++ b/src/main/java/io/github/null2264/cobblegen/mixin/network/ServerCommonPacketListenerMixin.java @@ -86,7 +86,7 @@ private void handleCustomPayload(ServerboundCustomPayloadPacket packet, Callback //$$ } //$$ return original; //$$ } - //#else if MC>=1.20.5 + //#else //$$ @WrapOperation( //$$ method = "send(Lnet/minecraft/network/protocol/Packet;Lnet/minecraft/network/PacketSendListener;)V", //$$ at = @At(value = "INVOKE", target = "Lnet/neoforged/neoforge/network/registration/NetworkRegistry;checkPacket(Lnet/minecraft/network/protocol/Packet;Lnet/minecraft/network/protocol/common/ServerCommonPacketListener;)V")