Skip to content

Commit

Permalink
pee jay bee rahvew
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoGarbage404 committed Jun 1, 2024
1 parent 224d691 commit c667b29
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Robust.Client/UserInterface/Controls/EntityPrototypeView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,17 @@ public void SetPrototype(EntProtoId? entProto)
}
}

protected override void Dispose(bool disposing)
protected override void EnteredTree()
{
base.Dispose(disposing);
base.EnteredTree();

if (!disposing)
return;
if (_currentPrototype != null)
SetPrototype(_currentPrototype);
}

protected override void ExitedTree()
{
base.ExitedTree();

if (!EntMan.Deleted(_ourEntity))
EntMan.QueueDeleteEntity(_ourEntity);
Expand Down

0 comments on commit c667b29

Please sign in to comment.