Skip to content

Commit

Permalink
fix: only when using main hand
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Feb 15, 2025
1 parent 768ccde commit 4947d14
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import net.minecraft.entity.Entity
import net.minecraft.entity.LivingEntity
import net.minecraft.item.AxeItem
import net.minecraft.item.SwordItem
import net.minecraft.util.Hand

/**
* AutoWeapon module
Expand Down Expand Up @@ -91,7 +92,8 @@ object ModuleAutoWeapon : ClientModule("AutoWeapon", Category.COMBAT) {
* Prioritize Auto Buff or consuming an item over Auto Weapon
*/
private val isBusy: Boolean
get() = SilentHotbar.isSlotModifiedBy(ModuleAutoBuff) || player.isUsingItem && player.activeItem.isConsumable
get() = SilentHotbar.isSlotModifiedBy(ModuleAutoBuff) || player.isUsingItem && player.activeHand ==
Hand.MAIN_HAND && player.activeItem.isConsumable

@Suppress("unused")
private val attackHandler = sequenceHandler<AttackEntityEvent> { event ->
Expand Down

0 comments on commit 4947d14

Please sign in to comment.