Fix addhand command (#1519)

This commit is contained in:
DrSmugleaf
2020-07-28 15:38:23 +02:00
committed by GitHub
parent c57b1c2914
commit 00d5effcb8
2 changed files with 25 additions and 5 deletions

View File

@@ -139,7 +139,11 @@ namespace Content.Client.GameObjects.Components.Items
if (entity == null)
{
_sprite.LayerSetVisible($"hand-{name}", false);
if (_sprite.LayerMapTryGet($"hand-{name}", out var layer))
{
_sprite.LayerSetVisible(layer, false);
}
return;
}