mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
Fix pirate radio event
This commit is contained in:
@@ -39,7 +39,7 @@ public sealed class PirateRadioSpawnRule : StationEventSystem<PirateRadioSpawnRu
|
||||
var xformQuery = GetEntityQuery<TransformComponent>();
|
||||
var aabbs = EntityQuery<StationDataComponent>().SelectMany(x =>
|
||||
x.Grids.Select(x =>
|
||||
xformQuery.GetComponent(x).WorldMatrix.TransformBox(_mapManager.GetGridComp(x).LocalAABB)))
|
||||
xformQuery.GetComponent(x).WorldMatrix.TransformBox(_entities.GetComponent<MapGridComponent>(x).LocalAABB)))
|
||||
.ToArray();
|
||||
if (aabbs.Length < 1) return;
|
||||
var aabb = aabbs[0];
|
||||
|
||||
Reference in New Issue
Block a user