Fix some comp dirty / appearance warnings (#13193)

* Fix some comp dirty / appearance warnings

* also dis
This commit is contained in:
metalgearsloth
2022-12-28 03:58:53 +11:00
committed by GitHub
parent d3d8dde42c
commit 007b079330
12 changed files with 43 additions and 45 deletions

View File

@@ -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))
{