mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 09:17:28 +07:00
Respawn players on restart
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user