Prevent certain foldable items from being unfolded on structures (#36687)

initial commit
This commit is contained in:
SlamBamActionman
2025-04-19 04:17:13 +02:00
committed by GitHub
parent 4d25907ba4
commit b6e101b96f
5 changed files with 41 additions and 7 deletions

View File

@@ -855,7 +855,7 @@ namespace Content.Shared.Interaction
{
// If the target is an item, we ignore any colliding entities. Currently done so that if items get stuck
// inside of walls, users can still pick them up.
ignored.UnionWith(_broadphase.GetEntitiesIntersectingBody(target, (int) collisionMask, false, physics));
ignored.UnionWith(_broadphase.GetEntitiesIntersectingBody(target, (int) collisionMask, false, physics)); // Note: This also bypasses items underneath doors, which may be problematic if it'd cause undesirable behavior.
}
else if (_wallMountQuery.TryComp(target, out var wallMount))
{