Revert "Update submodule (again)" (#7730)
This commit is contained in:
@@ -52,11 +52,8 @@ namespace Content.Shared.Decals
|
||||
}
|
||||
}
|
||||
|
||||
protected DecalGridComponent.DecalGridChunkCollection DecalGridChunkCollection(EntityUid gridEuid) =>
|
||||
Comp<DecalGridComponent>(gridEuid).ChunkCollection;
|
||||
protected DecalGridComponent.DecalGridChunkCollection DecalGridChunkCollection(GridId gridId) =>
|
||||
Comp<DecalGridComponent>(MapManager.GetGridEuid(gridId)).ChunkCollection;
|
||||
protected Dictionary<Vector2i, Dictionary<uint, Decal>> ChunkCollection(EntityUid gridEuid) => DecalGridChunkCollection(gridEuid).ChunkCollection;
|
||||
protected DecalGridComponent.DecalGridChunkCollection DecalGridChunkCollection(GridId gridId) => EntityManager
|
||||
.GetComponent<DecalGridComponent>(MapManager.GetGrid(gridId).GridEntityId).ChunkCollection;
|
||||
protected Dictionary<Vector2i, Dictionary<uint, Decal>> ChunkCollection(GridId gridId) => DecalGridChunkCollection(gridId).ChunkCollection;
|
||||
|
||||
protected virtual void DirtyChunk(GridId id, Vector2i chunkIndices) {}
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace Content.Shared.Maps
|
||||
if (!GetWorldTileBox(turf, out var worldBox))
|
||||
return Enumerable.Empty<EntityUid>();
|
||||
|
||||
return lookupSystem.GetEntitiesIntersecting(turf.GridIndex, worldBox, flags);
|
||||
return lookupSystem.GetEntitiesIntersecting(turf.MapIndex, worldBox, flags);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -193,18 +193,15 @@ namespace Content.Shared.Maps
|
||||
/// </summary>
|
||||
public static bool IsBlockedTurf(this TileRef turf, bool filterMobs)
|
||||
{
|
||||
// TODO: Deprecate this with entitylookup.
|
||||
var physics = EntitySystem.Get<EntityLookupSystem>();
|
||||
var physics = EntitySystem.Get<SharedPhysicsSystem>();
|
||||
|
||||
if (!GetWorldTileBox(turf, out var worldBox))
|
||||
return false;
|
||||
|
||||
var entManager = IoCManager.Resolve<IEntityManager>();
|
||||
var query = physics.GetEntitiesIntersecting(turf.GridIndex, worldBox);
|
||||
var query = physics.GetCollidingEntities(turf.MapIndex, in worldBox);
|
||||
|
||||
foreach (var ent in query)
|
||||
foreach (var body in query)
|
||||
{
|
||||
var body = entManager.GetComponent<PhysicsComponent>(ent);
|
||||
if (body.CanCollide && body.Hard && (body.CollisionLayer & (int) CollisionGroup.Impassable) != 0)
|
||||
return true;
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ namespace Content.Shared.SubFloor
|
||||
SubscribeLocalEvent<TileChangedEvent>(OnTileChanged);
|
||||
SubscribeLocalEvent<SubFloorHideComponent, ComponentStartup>(OnSubFloorStarted);
|
||||
SubscribeLocalEvent<SubFloorHideComponent, ComponentShutdown>(OnSubFloorTerminating);
|
||||
// Like 80% sure this doesn't need to handle re-anchoring.
|
||||
SubscribeLocalEvent<SubFloorHideComponent, AnchorStateChangedEvent>(HandleAnchorChanged);
|
||||
SubscribeLocalEvent<SubFloorHideComponent, GettingInteractedWithAttemptEvent>(OnInteractionAttempt);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public sealed class TrayScannerSystem : EntitySystem
|
||||
return;
|
||||
|
||||
scanner.Enabled = enabled;
|
||||
Dirty(scanner);
|
||||
scanner.Dirty();
|
||||
|
||||
if (scanner.Enabled)
|
||||
_activeScanners.Add(uid);
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Content.Shared.Throwing
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<ThrownItemComponent, PhysicsSleepEvent>(OnSleep);
|
||||
SubscribeLocalEvent<ThrownItemComponent, PhysicsSleepMessage>(HandleSleep);
|
||||
SubscribeLocalEvent<ThrownItemComponent, StartCollideEvent>(HandleCollision);
|
||||
SubscribeLocalEvent<ThrownItemComponent, PreventCollideEvent>(PreventCollision);
|
||||
SubscribeLocalEvent<ThrownItemComponent, ThrownEvent>(ThrowItem);
|
||||
@@ -87,7 +87,7 @@ namespace Content.Shared.Throwing
|
||||
}
|
||||
}
|
||||
|
||||
private void OnSleep(EntityUid uid, ThrownItemComponent thrownItem, ref PhysicsSleepEvent @event)
|
||||
private void HandleSleep(EntityUid uid, ThrownItemComponent thrownItem, PhysicsSleepMessage message)
|
||||
{
|
||||
StopThrow(uid, thrownItem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user