Fix some comp dirty / appearance warnings (#13193)
* Fix some comp dirty / appearance warnings * also dis
This commit is contained in:
@@ -108,7 +108,7 @@ public abstract class AlertsSystem : EntitySystem
|
||||
|
||||
AfterClearAlert(alertsComponent);
|
||||
|
||||
alertsComponent.Dirty();
|
||||
Dirty(alertsComponent);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -128,7 +128,7 @@ public abstract class AlertsSystem : EntitySystem
|
||||
|
||||
AfterClearAlert(alertsComponent);
|
||||
|
||||
alertsComponent.Dirty();
|
||||
Dirty(alertsComponent);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -210,7 +210,8 @@ public abstract class AlertsSystem : EntitySystem
|
||||
private void HandleClickAlert(ClickAlertEvent msg, EntitySessionEventArgs args)
|
||||
{
|
||||
var player = args.SenderSession.AttachedEntity;
|
||||
if (player is null || !EntityManager.TryGetComponent<AlertsComponent>(player, out var alertComp)) return;
|
||||
if (player is null || !EntityManager.HasComponent<AlertsComponent>(player))
|
||||
return;
|
||||
|
||||
if (!IsShowingAlert(player.Value, msg.Type))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user