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)