Fix RGB resolve error (#7476)

This commit is contained in:
Leon Friedrich 2022-04-09 13:52:45 +12:00 committed by GitHub
parent 68d9417faa
commit ea86d4f44d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -1,15 +1,9 @@
using Content.Shared.Hands;
using Content.Shared.Hands.Components;
using Content.Shared.Item;
using Robust.Client.GameObjects;
using Robust.Client.Graphics;
using Robust.Client.ResourceManagement;
using Robust.Shared.Containers;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Log;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using static Robust.Shared.GameObjects.SharedSpriteComponent;
@ -34,7 +28,7 @@ public sealed class ItemSystem : SharedItemSystem
/// </summary>
public override void VisualsChanged(EntityUid uid, SharedItemComponent? item = null)
{
if (!Resolve(uid, ref item))
if (!Resolve(uid, ref item, false))
return;
// if the item is in a container, it might be equipped to hands or inventory slots --> update visuals.