Skip to content

Commit 23b48b2

Browse files
committed
that too
Signed-off-by: Octol1ttle <[email protected]>
1 parent 0cf4178 commit 23b48b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/ru/octol1ttle/flightassistant/impl/computer/autoflight/FireworkComputer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class FireworkComputer(computers: ComputerBus, private val mc: Minecraft) : Comp
3737
ThrustSourceRegistrationCallback.EVENT.register { it.accept(this) }
3838
InteractionEvent.RIGHT_CLICK_ITEM.register(InteractionEvent.RightClickItem { player, hand ->
3939
val stack: ItemStack = player.getItemInHand(hand)
40-
if (player.level().isClientSide() && stack.item is FireworkRocketItem) {
40+
if (player.level().isClientSide() && computers.data.flying && stack.item is FireworkRocketItem) {
4141
val explosive = FAConfig.safety.fireworkLockExplosive && !isEmptyOrSafe(player, hand)
4242
val anyTerrainAhead = FAConfig.safety.fireworkLockObstacles && anyTerrainAhead()
4343
if (explosive || anyTerrainAhead) {

0 commit comments

Comments
 (0)