Sprite netsync purge (1st wave) (#6557)

This commit is contained in:
metalgearsloth
2022-02-10 00:44:29 +11:00
committed by GitHub
parent 690194be1f
commit 70f3c7c7e9
14 changed files with 24 additions and 3 deletions

View File

@@ -37,6 +37,11 @@ namespace Content.Shared.Item
args.State = new ItemComponentState(component.Size, component.EquippedPrefix, component.Color, component.RsiPath);
}
// Although netsync is being set to false for items client can still update these
// Realistically:
// Container should already hide these
// Client is the only thing that matters.
private void OnUnequipped(EntityUid uid, SharedSpriteComponent component, GotUnequippedEvent args)
{
component.Visible = true;