mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 16:04:41 +00:00
Sync silo NTU level on map with all clients when it changes
This commit is contained in:
parent
b326cdf530
commit
a4c2085fb7
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ class ResourceSiloControl(resourceSilo : ResourceSilo) extends Actor with Factio
|
||||||
if(resourceSilo.CapacitorDisplay != ntuBarLevel) {
|
if(resourceSilo.CapacitorDisplay != ntuBarLevel) {
|
||||||
log.trace(s"Silo ${resourceSilo.GUID} NTU bar level has changed from ${resourceSilo.CapacitorDisplay} to ${ntuBarLevel}")
|
log.trace(s"Silo ${resourceSilo.GUID} NTU bar level has changed from ${resourceSilo.CapacitorDisplay} to ${ntuBarLevel}")
|
||||||
resourceSilo.CapacitorDisplay = ntuBarLevel
|
resourceSilo.CapacitorDisplay = ntuBarLevel
|
||||||
|
resourceSilo.Owner.Actor ! Building.SendMapUpdateToAllClients()
|
||||||
avatarService ! AvatarServiceMessage(resourceSilo.Owner.asInstanceOf[Building].Zone.Id, AvatarAction.PlanetsideAttribute(resourceSilo.GUID, 45, resourceSilo.CapacitorDisplay))
|
avatarService ! AvatarServiceMessage(resourceSilo.Owner.asInstanceOf[Building].Zone.Id, AvatarAction.PlanetsideAttribute(resourceSilo.GUID, 45, resourceSilo.CapacitorDisplay))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue