ECSatize AlertsSystem (#5559)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Content.Server.Atmos.Components;
|
||||
using Content.Server.Atmos.Components;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Shared.Alert;
|
||||
using JetBrains.Annotations;
|
||||
@@ -15,11 +15,11 @@ namespace Content.Server.Alert.Click
|
||||
[DataDefinition]
|
||||
public class ResistFire : IAlertClick
|
||||
{
|
||||
public void AlertClicked(ClickAlertEventArgs args)
|
||||
public void AlertClicked(EntityUid player)
|
||||
{
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(args.Player, out FlammableComponent? flammable))
|
||||
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(player, out FlammableComponent? flammable))
|
||||
{
|
||||
EntitySystem.Get<FlammableSystem>().Resist(args.Player, flammable);
|
||||
EntitySystem.Get<FlammableSystem>().Resist(player, flammable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user