Skip to content

Commit 0d513e1

Browse files
committed
Lint code
1 parent d9bd005 commit 0d513e1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/kotlin/com/lambda/module/modules/movement/BetterFirework.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import com.lambda.config.settings.complex.Bind
2424
import com.lambda.context.SafeContext
2525
import com.lambda.event.events.KeyboardEvent
2626
import com.lambda.event.events.MouseEvent
27-
import com.lambda.event.events.PlayerEvent
2827
import com.lambda.event.events.TickEvent
2928
import com.lambda.event.listener.SafeListener.Companion.listen
3029
import com.lambda.interaction.material.StackSelection.Companion.selectStack
@@ -44,8 +43,6 @@ import net.minecraft.entity.effect.StatusEffects
4443
import net.minecraft.item.Items
4544
import net.minecraft.network.packet.c2s.play.ClientCommandC2SPacket
4645
import net.minecraft.network.packet.c2s.play.HandSwingC2SPacket
47-
import net.minecraft.network.packet.c2s.play.PlayerInteractItemC2SPacket
48-
import net.minecraft.screen.slot.SlotActionType
4946
import net.minecraft.util.Hand
5047
import net.minecraft.util.hit.HitResult
5148

@@ -236,7 +233,7 @@ object BetterFirework : Module(
236233
stack.bestItemMatch(player.hotbarAndStorage)
237234
?.let {
238235
val swapSlotId = player.hotbarAndStorage.indexOf(it)
239-
val hotbarSlotToSwapWith = player.hotbar.find { slot -> slot.isEmpty } ?.let { slot -> player.hotbar.indexOf(slot) } ?: 8
236+
val hotbarSlotToSwapWith = player.hotbar.find { slot -> slot.isEmpty }?.let { slot -> player.hotbar.indexOf(slot) } ?: 8
240237

241238
inventoryRequest {
242239
swap(swapSlotId, hotbarSlotToSwapWith)

0 commit comments

Comments
 (0)