Skip to content

Commit

Permalink
remove useless Unit
Browse files Browse the repository at this point in the history
  • Loading branch information
MukjepScarlet committed Dec 20, 2024
1 parent f90c812 commit 02068b4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ object BlinkUtils : MinecraftInstance, Listenable {
if (event.eventType == EventState.RECEIVE) {
synchronized(packetsReceived) {
PacketUtils.schedulePacketProcess(packetsReceived)
Unit
}
packetsReceived.clear()
}
Expand Down Expand Up @@ -165,7 +164,6 @@ object BlinkUtils : MinecraftInstance, Listenable {
fun unblink() {
synchronized(packetsReceived) {
PacketUtils.schedulePacketProcess(packetsReceived)
Unit
}
synchronized(packets) {
sendPackets(*packets.toTypedArray(), triggerEvents = false)
Expand Down

0 comments on commit 02068b4

Please sign in to comment.