@@ -24,7 +24,6 @@ import com.lambda.config.settings.complex.Bind
2424import com.lambda.context.SafeContext
2525import com.lambda.event.events.KeyboardEvent
2626import com.lambda.event.events.MouseEvent
27- import com.lambda.event.events.PlayerEvent
2827import com.lambda.event.events.TickEvent
2928import com.lambda.event.listener.SafeListener.Companion.listen
3029import com.lambda.interaction.material.StackSelection.Companion.selectStack
@@ -44,8 +43,6 @@ import net.minecraft.entity.effect.StatusEffects
4443import net.minecraft.item.Items
4544import net.minecraft.network.packet.c2s.play.ClientCommandC2SPacket
4645import net.minecraft.network.packet.c2s.play.HandSwingC2SPacket
47- import net.minecraft.network.packet.c2s.play.PlayerInteractItemC2SPacket
48- import net.minecraft.screen.slot.SlotActionType
4946import net.minecraft.util.Hand
5047import 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