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 3c762ce commit cba5065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/client/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ object Client {
if (showingTurrets || showingInvTurrets) {
val enemyunits = Core.settings.getBool("enemyunitranges")
val showall = Core.settings.getBool("showallturrets")
val flying = player.unit().isFlying
val flying = player.unit() == null || player.unit().isFlying
val mousev = Core.input.mouseWorld()
val mouseBuild = world.buildWorld(mousev.x, mousev.y)
getTree().use {
Expand Down

0 comments on commit cba5065

Please sign in to comment.