Piping Unit test fixes (#3471)
* PipeNetDevice on piping prototypes * client component ignore * NodeContainer OnRemove bugfix * Moves some NodeContainer code from OnRemove to Shutdown * yaml indentation fix
This commit is contained in:
@@ -11,8 +11,10 @@ namespace Content.Server.GameObjects.Components.NodeContainer.Nodes
|
||||
{
|
||||
protected override IEnumerable<Node> GetReachableNodes()
|
||||
{
|
||||
var cells = Owner.GetComponent<SnapGridComponent>()
|
||||
.GetCardinalNeighborCells();
|
||||
if (!Owner.TryGetComponent(out SnapGridComponent? grid))
|
||||
yield break;
|
||||
|
||||
var cells = grid.GetCardinalNeighborCells();
|
||||
|
||||
foreach (var cell in cells)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user