Allows placing cables on lattices. (#4984)
Adds a "sturdy" tile flag, that in the future could be used by construction/etc to figure out if it's safe to build on a tile. (For example water isn't space, but it's not a sturdy building surface!)
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Content.Server.Power.Components
|
||||
var snapPos = grid.TileIndicesFor(eventArgs.ClickLocation);
|
||||
var tileDef = grid.GetTileRef(snapPos).Tile.GetContentTileDefinition();
|
||||
|
||||
if(!tileDef.IsSubFloor || tileDef.IsSpace)
|
||||
if(!tileDef.IsSubFloor || !tileDef.Sturdy)
|
||||
return false;
|
||||
|
||||
foreach (var anchored in grid.GetAnchoredEntities(snapPos))
|
||||
|
||||
Reference in New Issue
Block a user