Respawn players on restart
This commit is contained in:
@@ -817,6 +817,10 @@ public class ServerControl implements ApplicationListener{
|
|||||||
if(state.rules.pvp){
|
if(state.rules.pvp){
|
||||||
p.setTeam(netServer.assignTeam(p, new ArrayIterable<>(players)));
|
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);
|
netServer.sendWorldData(p);
|
||||||
}
|
}
|
||||||
inExtraRound = false;
|
inExtraRound = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user