File tree Expand file tree Collapse file tree
logistics/src/main/kotlin/xyz/xenondevs/nova/addon/logistics/tileentity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ import xyz.xenondevs.nova.world.block.tileentity.network.type.item.holder.ItemHo
5959import xyz.xenondevs.nova.world.format.NetworkState
6060import xyz.xenondevs.nova.world.model.FixedMultiModel
6161import xyz.xenondevs.nova.world.model.Model
62+ import xyz.xenondevs.nova.world.player.swingMainHandEventless
6263import java.util.concurrent.ConcurrentHashMap
6364import kotlin.math.roundToInt
6465import kotlin.math.roundToLong
@@ -238,7 +239,10 @@ open class Cable(
238239
239240 return VirtualHitbox (from, to).apply {
240241 setQualifier { player, _ -> player.inventory.itemInMainHand.novaItem == Items .WRENCH }
241- addRightClickHandler { _, _ -> cycleBridgeFaces(face) }
242+ addRightClickHandler { player, _ ->
243+ cycleBridgeFaces(face)
244+ player.swingMainHandEventless()
245+ }
242246 }
243247 }
244248
You can’t perform that action at this time.
0 commit comments