Cut corners on excessive damage (#6190)

This commit is contained in:
Leon Friedrich
2022-01-18 20:48:17 +13:00
committed by GitHub
parent 0375d02b3f
commit 36a96b7e14
9 changed files with 78 additions and 2 deletions

View File

@@ -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;
}
}
}