Only auto-enable internals when necessary (#28248)
* Only auto-enable internals when necessary * Add toxic gas check * Rename Any -> AnyPositive
This commit is contained in:
@@ -396,7 +396,7 @@ public sealed partial class ExplosionSystem
|
||||
|
||||
// don't raise BeforeExplodeEvent if the entity is completely immune to explosions
|
||||
var thisDamage = GetDamage(uid, prototype, originalDamage);
|
||||
if (!thisDamage.Any())
|
||||
if (thisDamage.Empty)
|
||||
return;
|
||||
|
||||
_toDamage.Add((uid, thisDamage));
|
||||
|
||||
Reference in New Issue
Block a user