Allow protected grids to be repaired (#36989)

* Allow protected grids to be repaired

* Probably implement it

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Nemanja
2025-05-16 21:54:27 -04:00
committed by GitHub
parent 2f4a364876
commit 6f809d1ad6
5 changed files with 84 additions and 9 deletions

View File

@@ -395,7 +395,7 @@ public sealed class RCDSystem : EntitySystem
if (prototype.Mode == RcdMode.ConstructTile)
{
// Check rule: Tile placement is valid
if (!_floors.CanPlaceTile(gridUid, mapGrid, out var reason))
if (!_floors.CanPlaceTile(gridUid, mapGrid, tile.GridIndices, out var reason))
{
if (popMsgs)
_popup.PopupClient(reason, uid, user);