Fix ClientStatusEffectsComponent not cleaning up GUI on shutdown correctly.

This commit is contained in:
Pieter-Jan Briers
2020-04-13 22:28:05 +02:00
parent a4092acf5b
commit ec314545ef

View File

@@ -76,10 +76,6 @@ namespace Content.Client.GameObjects.Components.Mobs
private void PlayerDetached() private void PlayerDetached()
{ {
if (!CurrentlyControlled)
{
return;
}
_ui?.Dispose(); _ui?.Dispose();
_ui = null; _ui = null;
} }