Skip to content

Commit

Permalink
Merge branch 'v7' into v8
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Oct 2, 2024
2 parents 60ee15d + 14c9b1b commit fb186e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/src/mindustry/client/ui/FindDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ object FindDialog : BaseDialog("@client.find") {
init {
for ((i, img) in images.withIndex()) {
img.clicked { // When image clicked, select it
if (guesses.size <= i) return@clicked
val gi = guesses[i]
guesses[i] = guesses[0]
guesses[0] = gi
Expand Down
2 changes: 1 addition & 1 deletion core/src/mindustry/client/utils/AutoTransfer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class AutoTransfer {

/** Transfers outputs from blocks into core/containers */
private fun drain(): Boolean { // FINISHME: Until this class is refactored to have a more generic input output system I'm just gonna copy a lot of code into this function
core = player.closestCore()
core = player.closestCore() ?: return@drain false
val nearCore = player.within(core, itemTransferRange)
if (!nearCore) core = null

Expand Down

0 comments on commit fb186e9

Please sign in to comment.