Clear commanding units on sync
This commit is contained in:
@@ -472,6 +472,10 @@ public class NetServer implements ApplicationListener{
|
||||
return;
|
||||
}
|
||||
|
||||
if(!player.dead() && player.unit().isCommanding()){
|
||||
player.unit().clearCommand();
|
||||
}
|
||||
|
||||
player.getInfo().lastSyncTime = Time.millis();
|
||||
Call.worldDataBegin(player.con);
|
||||
netServer.sendWorldData(player);
|
||||
|
||||
Reference in New Issue
Block a user