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