Skip to content

Commit

Permalink
fix: Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Nov 13, 2023
1 parent 9dc060e commit e2bdc7c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class KillAllCommand(instances: InstanceManager) :

override suspend fun onVoteSessionSuccess(session: VoteManager.Session<Unit>) {
runMindustryThread {
Entities.UNITS.toList().forEach { unit -> if (!unit.isPlayer) Call.unitDespawn(unit) }
Entities.getUnits().toList().forEach { unit ->
if (!unit.isPlayer) Call.unitDespawn(unit)
}
}
}
}

0 comments on commit e2bdc7c

Please sign in to comment.