Clear commanding units on sync

This commit is contained in:
Anuken
2021-06-28 09:56:49 -04:00
parent fbfb491dca
commit 75443e4dfc

View File

@@ -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);