Check if entity has FlammableComponent befor calling Extinguish on Rejuvenate.
This commit is contained in:
@@ -57,7 +57,10 @@ namespace Content.Server.Administration.Commands
|
|||||||
target.GetComponentOrNull<ThirstComponent>()?.ResetThirst();
|
target.GetComponentOrNull<ThirstComponent>()?.ResetThirst();
|
||||||
target.GetComponentOrNull<StunnableComponent>()?.ResetStuns();
|
target.GetComponentOrNull<StunnableComponent>()?.ResetStuns();
|
||||||
|
|
||||||
EntitySystem.Get<FlammableSystem>().Extinguish(target.Uid);
|
if (target.TryGetComponent(out FlammableComponent? flammable))
|
||||||
|
{
|
||||||
|
EntitySystem.Get<FlammableSystem>().Extinguish(target.Uid, flammable);
|
||||||
|
}
|
||||||
|
|
||||||
if (target.TryGetComponent(out DamageableComponent? damageable))
|
if (target.TryGetComponent(out DamageableComponent? damageable))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user