From 0721f250f4519b45891b4ae169d5e20ef175b0c5 Mon Sep 17 00:00:00 2001 From: Walker Selby Date: Sun, 26 Nov 2023 07:28:18 +0000 Subject: Internal Change: Code Cleanup (#661) Code cleanup #661 --- .../java/at/hannibal2/skyhanni/mixins/hooks/NetworkManagerHook.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/mixins') diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/NetworkManagerHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/NetworkManagerHook.kt index ca4c2e42b..71f6aaba9 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/NetworkManagerHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/NetworkManagerHook.kt @@ -5,5 +5,5 @@ import net.minecraft.network.Packet import org.spongepowered.asm.mixin.injection.callback.CallbackInfo fun onReceivePacket(packet: Packet<*>, ci: CallbackInfo) { - if (packet != null && PacketEvent.ReceiveEvent(packet).postAndCatch()) ci.cancel() -} \ No newline at end of file + if (PacketEvent.ReceiveEvent(packet).postAndCatch()) ci.cancel() +} -- cgit