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

@@ -277,7 +277,10 @@ public sealed partial class AnchorableSystem : EntitySystem
return !attempt.Cancelled;
}
private bool TileFree(EntityCoordinates coordinates, PhysicsComponent anchorBody)
/// <summary>
/// Returns true if no hard anchored entities exist on the coordinate tile that would collide with the provided physics body.
/// </summary>
public bool TileFree(EntityCoordinates coordinates, PhysicsComponent anchorBody)
{
// Probably ignore CanCollide on the anchoring body?
var gridUid = _transformSystem.GetGrid(coordinates);