Skip to content

Commit 0cf4178

Browse files
committed
oops x2
Signed-off-by: Octol1ttle <[email protected]>
1 parent 8390356 commit 0cf4178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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()) {
40+
if (player.level().isClientSide() && stack.item is FireworkRocketItem) {
4141
val explosive = FAConfig.safety.fireworkLockExplosive && !isEmptyOrSafe(player, hand)
4242
val anyTerrainAhead = FAConfig.safety.fireworkLockObstacles && anyTerrainAhead()
4343
if (explosive || anyTerrainAhead) {
@@ -47,7 +47,7 @@ class FireworkComputer(computers: ComputerBus, private val mc: Minecraft) : Comp
4747
return@RightClickItem dev.architectury.event.CompoundEventResult.interruptFalse(stack)
4848
}
4949

50-
if (!waitingForResponse && stack.item is FireworkRocketItem) {
50+
if (!waitingForResponse) {
5151
lastActivationTime = FATickCounter.totalTicks
5252
waitingForResponse = true
5353
}

0 commit comments

Comments
 (0)