Cut corners on excessive damage (#6190)
This commit is contained in:
@@ -41,6 +41,10 @@ namespace Content.Server.Destructible
|
||||
|
||||
threshold.Execute(uid, this, EntityManager);
|
||||
}
|
||||
|
||||
// if destruction behavior (or some other deletion effect) occurred, don't run other triggers.
|
||||
if (EntityManager.IsQueuedForDeletion(uid) || Deleted(uid))
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user