Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Oct 9, 2024
1 parent 151f9dc commit 3c762ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/mindustry/client/navigation/MinePath.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class MinePath @JvmOverloads constructor(
override fun getShow() = false

override fun follow() {
if (player.unit() == null) return
if (AutoTransfer.enabled) AutoTransfer.enabled = false // AutoTransfer doesn't play well with MinePath

val core = player.closestCore() ?: return
Expand Down

0 comments on commit 3c762ce

Please sign in to comment.