mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Heal *all* cores on game start
This commit is contained in:
parent
f87054c667
commit
c80f2d6cf4
1 changed files with 5 additions and 3 deletions
|
|
@ -185,9 +185,11 @@ public class Logic implements ApplicationListener{
|
|||
}
|
||||
}
|
||||
|
||||
//heal player cores on start - fixes any potential core health increases
|
||||
for(var entity : state.rules.defaultTeam.cores()){
|
||||
entity.heal();
|
||||
//heal all cores on game start
|
||||
for(TeamData team : state.teams.getActive()){
|
||||
for(var entity : team.cores){
|
||||
entity.heal();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue