diff --git a/Content.Shared/Doors/Systems/SharedDoorSystem.cs b/Content.Shared/Doors/Systems/SharedDoorSystem.cs index 18170f4c88..c25b8933f7 100644 --- a/Content.Shared/Doors/Systems/SharedDoorSystem.cs +++ b/Content.Shared/Doors/Systems/SharedDoorSystem.cs @@ -29,6 +29,7 @@ public abstract class SharedDoorSystem : EntitySystem [Dependency] protected readonly SharedAudioSystem Audio = default!; [Dependency] private readonly EntityLookupSystem _entityLookup = default!; [Dependency] private readonly SharedAppearanceSystem _appearance = default!; + [Dependency] private readonly OccluderSystem _occluder = default!; /// /// A body must have an intersection percentage larger than this in order to be considered as colliding with a @@ -390,8 +391,8 @@ public abstract class SharedDoorSystem : EntitySystem if (!collidable) door.CurrentlyCrushing.Clear(); - if (door.Occludes && Resolve(uid, ref occluder, false)) - occluder.Enabled = collidable; + if (door.Occludes) + _occluder.SetEnabled(uid, collidable); } /// diff --git a/Content.Shared/Examine/ExamineSystemShared.cs b/Content.Shared/Examine/ExamineSystemShared.cs index c7738750c0..e80b50541d 100644 --- a/Content.Shared/Examine/ExamineSystemShared.cs +++ b/Content.Shared/Examine/ExamineSystemShared.cs @@ -186,7 +186,8 @@ namespace Content.Shared.Examine continue; } - var bBox = o.BoundingBox.Translated(entMan.GetComponent(o.Owner).WorldPosition); + var bBox = o.BoundingBox; + bBox = bBox.Translated(entMan.GetComponent(o.Owner).WorldPosition); if (bBox.Contains(origin.Position) || bBox.Contains(other.Position)) { diff --git a/Resources/Prototypes/Entities/Effects/chemistry_effects.yml b/Resources/Prototypes/Entities/Effects/chemistry_effects.yml index 43b7eb1f7e..2c4b9d9607 100644 --- a/Resources/Prototypes/Entities/Effects/chemistry_effects.yml +++ b/Resources/Prototypes/Entities/Effects/chemistry_effects.yml @@ -127,8 +127,6 @@ mask: - WallLayer - type: Occluder - sizeX: 32 - sizeY: 32 - type: Transform anchored: true - type: Airtight diff --git a/Resources/Prototypes/Entities/Structures/Doors/MaterialDoors/material_doors.yml b/Resources/Prototypes/Entities/Structures/Doors/MaterialDoors/material_doors.yml index 2b5200f0cc..343521c3c0 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/MaterialDoors/material_doors.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/MaterialDoors/material_doors.yml @@ -57,8 +57,6 @@ key: walls mode: NoSprite - type: Occluder - sizeX: 32 - sizeY: 32 - type: entity id: MetalDoor diff --git a/Resources/Prototypes/Entities/Structures/Walls/asteroid.yml b/Resources/Prototypes/Entities/Structures/Walls/asteroid.yml index e535d20c79..62e2bf9bb7 100644 --- a/Resources/Prototypes/Entities/Structures/Walls/asteroid.yml +++ b/Resources/Prototypes/Entities/Structures/Walls/asteroid.yml @@ -24,8 +24,6 @@ - !type:DoActsBehavior acts: ["Destruction"] - type: Occluder - sizeX: 32 - sizeY: 32 - type: Airtight - type: Fixtures fixtures: diff --git a/Resources/Prototypes/Entities/Structures/Walls/walls.yml b/Resources/Prototypes/Entities/Structures/Walls/walls.yml index 796e092ba5..fdb30ab809 100644 --- a/Resources/Prototypes/Entities/Structures/Walls/walls.yml +++ b/Resources/Prototypes/Entities/Structures/Walls/walls.yml @@ -42,8 +42,6 @@ - WallLayer density: 1000 - type: Occluder - sizeX: 32 - sizeY: 32 - type: Airtight - type: StaticPrice price: 75 diff --git a/Resources/Prototypes/Entities/Structures/Windows/reinforced.yml b/Resources/Prototypes/Entities/Structures/Windows/reinforced.yml index 3805c482bd..79f0725dcc 100644 --- a/Resources/Prototypes/Entities/Structures/Windows/reinforced.yml +++ b/Resources/Prototypes/Entities/Structures/Windows/reinforced.yml @@ -67,8 +67,6 @@ graph: Window node: tintedWindow - type: Occluder - sizeX: 32 - sizeY: 32 - type: StaticPrice price: 0.75 diff --git a/Resources/Prototypes/Entities/Structures/plastic_flaps.yml b/Resources/Prototypes/Entities/Structures/plastic_flaps.yml index 7264588581..621f1bc521 100644 --- a/Resources/Prototypes/Entities/Structures/plastic_flaps.yml +++ b/Resources/Prototypes/Entities/Structures/plastic_flaps.yml @@ -62,8 +62,6 @@ - Opaque - MidImpassable - type: Occluder - sizeX: 32 - sizeY: 32 - type: entity id: PlasticFlapsAirtightClear