mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-12 19:31:04 +00:00
Tweaks to !hack admin command to reduce the message storm it causes (#405)
This commit is contained in:
parent
4c249bb358
commit
70e59effec
2 changed files with 9 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
package net.psforever.objects.zones
|
||||
|
||||
import akka.actor.{Actor, Props}
|
||||
import net.psforever.objects.serverobject.structures.Building
|
||||
import net.psforever.objects.serverobject.structures.{Building, StructureType}
|
||||
import net.psforever.types.Vector3
|
||||
|
||||
import scala.annotation.tailrec
|
||||
|
|
@ -75,7 +75,9 @@ class InterstellarCluster(zones : List[Zone]) extends Actor {
|
|||
}
|
||||
case InterstellarCluster.ZoneMapUpdate(zone_num: Int) =>
|
||||
val zone = zones.find(x => x.Number == zone_num).get
|
||||
zone.Buildings.values.foreach(b => b.Actor ! Building.SendMapUpdate(all_clients = true))
|
||||
zone.Buildings
|
||||
.filter(_._2.BuildingType == StructureType.Facility)
|
||||
.values.foreach(b => b.Actor ! Building.SendMapUpdate(all_clients = true))
|
||||
|
||||
|
||||
case Zoning.InstantAction.Request(faction) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue