Fix do_after throwing on attaching to new entity (#1679)

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-08-16 00:03:43 +10:00
committed by GitHub
parent f791719e31
commit 845f5af7d0
3 changed files with 34 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ namespace Content.Client.GameObjects.EntitySystems.DoAfter
{
_player = entity;
// Setup the GUI and pass the new data to it if applicable.
Gui?.Dispose();
Gui?.Detached();
if (entity == null)
{