Account for graph actions being able to delete the entity in ChangeNode.
Fixes an exception that occurs if a node action deletes a construction.
This commit is contained in:
@@ -403,7 +403,7 @@ namespace Content.Server.Construction
|
||||
foreach (var action in actions)
|
||||
{
|
||||
// If an action deletes the entity, we stop performing actions.
|
||||
if (!EntityManager.EntityExists(uid))
|
||||
if (!Exists(uid))
|
||||
break;
|
||||
|
||||
action.PerformAction(uid, userUid, EntityManager);
|
||||
|
||||
Reference in New Issue
Block a user