Remove server-side RefreshInHands, refresh them on component state update

This commit is contained in:
zumorica
2020-05-21 19:44:49 +02:00
parent 7cbd2fd8ce
commit d3102dbf96
5 changed files with 2 additions and 26 deletions

View File

@@ -101,6 +101,7 @@ namespace Content.Client.GameObjects
ActiveIndex = cast.ActiveIndex;
_gui?.UpdateHandIcons();
RefreshInHands();
}
private void _setHand(string hand, IEntity entity)
@@ -190,9 +191,6 @@ namespace Content.Client.GameObjects
case PlayerDetachedMsg _:
_gui.Parent?.RemoveChild(_gui);
break;
case RefreshInHandsMsg _:
RefreshInHands();
break;
}
}