In-hands are now refreshed when the prefix is changed

This commit is contained in:
zumorica
2020-05-14 15:44:05 +02:00
parent 1dd7eb8677
commit 2132ff41d4
6 changed files with 58 additions and 3 deletions

View File

@@ -406,6 +406,11 @@ namespace Content.Server.GameObjects
return hands.ContainsKey(index);
}
public void RefreshInHands()
{
SendNetworkMessage(new RefreshInHandsMsg());
}
/// <summary>
/// Get the name of the slot passed to the inventory component.
/// </summary>

View File

@@ -13,6 +13,7 @@ using Robust.Shared.Containers;
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.Map;
using Robust.Shared.Interfaces.Physics;
using Robust.Shared.Interfaces.Random;
@@ -48,8 +49,8 @@ namespace Content.Server.GameObjects
}
set
{
Dirty();
_equippedPrefix = value;
Dirty();
}
}