From 02068b4457f95c41d32dff43a330da761d1e4ce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E8=91=89=20Scarlet?= <93977077+mukjepscarlet@users.noreply.github.com> Date: Fri, 20 Dec 2024 22:44:10 +0800 Subject: [PATCH] remove useless Unit --- .../liquidbounce/features/module/modules/combat/TimerRange.kt | 1 - .../module/modules/movement/flymodes/blocksmc/BlocksMC2.kt | 3 +-- .../java/net/ccbluex/liquidbounce/utils/client/BlinkUtils.kt | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/TimerRange.kt b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/TimerRange.kt index 17b3bc154f6..8740701eaeb 100644 --- a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/TimerRange.kt +++ b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/TimerRange.kt @@ -280,7 +280,6 @@ object TimerRange : Module("TimerRange", Category.COMBAT, hideModule = false) { if (blink && event.eventState == EventState.POST) { synchronized(packetsReceived) { PacketUtils.schedulePacketProcess(packetsReceived) - Unit } packetsReceived.clear() } diff --git a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/flymodes/blocksmc/BlocksMC2.kt b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/flymodes/blocksmc/BlocksMC2.kt index 02bb147daa2..498eb90e69e 100644 --- a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/flymodes/blocksmc/BlocksMC2.kt +++ b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/flymodes/blocksmc/BlocksMC2.kt @@ -205,10 +205,9 @@ object BlocksMC2 : FlyMode("BlocksMC2"), Listenable { private fun blink() { synchronized(packetsReceived) { PacketUtils.schedulePacketProcess(packetsReceived) - Unit } synchronized(packets) { - sendPackets(*packets.toTypedArray(), triggerEvents = false) + sendPackets(packets = packets.toTypedArray(), triggerEvents = false) } packets.clear() diff --git a/src/main/java/net/ccbluex/liquidbounce/utils/client/BlinkUtils.kt b/src/main/java/net/ccbluex/liquidbounce/utils/client/BlinkUtils.kt index d4c9ab1faf8..286608f7162 100644 --- a/src/main/java/net/ccbluex/liquidbounce/utils/client/BlinkUtils.kt +++ b/src/main/java/net/ccbluex/liquidbounce/utils/client/BlinkUtils.kt @@ -47,7 +47,6 @@ object BlinkUtils : MinecraftInstance, Listenable { if (event.eventType == EventState.RECEIVE) { synchronized(packetsReceived) { PacketUtils.schedulePacketProcess(packetsReceived) - Unit } packetsReceived.clear() } @@ -165,7 +164,6 @@ object BlinkUtils : MinecraftInstance, Listenable { fun unblink() { synchronized(packetsReceived) { PacketUtils.schedulePacketProcess(packetsReceived) - Unit } synchronized(packets) { sendPackets(*packets.toTypedArray(), triggerEvents = false)