Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Sep 7, 2024
1 parent 0b0cae8 commit f83d110
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import java.util.*
import kotlin.collections.set

class PointToPointGPS(
private val network: Ref<RoadNetworkEntry>,
override val roadNetwork: Ref<RoadNetworkEntry>,
private val startFetcher: suspend (RoadNetwork) -> Location,
private val endFetcher: suspend (RoadNetwork) -> Location,
) : GPS, KoinComponent {
Expand All @@ -29,7 +29,7 @@ class PointToPointGPS(
private var previousPath: List<RoadEdge> = emptyList()

override suspend fun findPath(): Result<List<GPSEdge>> = DISPATCHERS_ASYNC.switchContext {
var network = roadNetworkManager.getNetwork(network)
var network = roadNetworkManager.getNetwork(roadNetwork)

val start = startFetcher(network)
val end = endFetcher(network)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class InteractionHandler : Listener, KoinComponent {
// If no dialogue is active, we don't want to cancel any who would be triggered by this.
val inDialogue = event.player.interaction?.hasDialogue ?: false
if (!inDialogue) return

DIALOGUE_END triggerFor event.player
}

Expand Down

0 comments on commit f83d110

Please sign in to comment.