mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-18 07:12:15 -08:00
Respawn players on restart
This commit is contained in:
parent
ceec999922
commit
d39ceb1f5e
1 changed files with 4 additions and 0 deletions
|
|
@ -817,6 +817,10 @@ public class ServerControl implements ApplicationListener{
|
|||
if(state.rules.pvp){
|
||||
p.setTeam(netServer.assignTeam(p, new ArrayIterable<>(players)));
|
||||
}
|
||||
if(p.getClosestCore() != null){
|
||||
p.setDead(false);
|
||||
p.setNet(p.getClosestCore().x, p.getClosestCore().y);
|
||||
}
|
||||
netServer.sendWorldData(p);
|
||||
}
|
||||
inExtraRound = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue