fix hand examine (#21309)

This commit is contained in:
Nemanja
2023-11-04 08:50:05 -04:00
committed by GitHub
parent bda8a9c82e
commit 7a2a3ce9a7

View File

@@ -182,7 +182,9 @@ public abstract partial class SharedHandsSystem : EntitySystem
//TODO: Actually shows all items/clothing/etc. //TODO: Actually shows all items/clothing/etc.
private void HandleExamined(EntityUid uid, HandsComponent handsComp, ExaminedEvent args) private void HandleExamined(EntityUid uid, HandsComponent handsComp, ExaminedEvent args)
{ {
var held = EnumerateHeld(uid, handsComp).ToList(); var held = EnumerateHeld(uid, handsComp)
.Where(x => !HasComp<HandVirtualItemComponent>(x)).ToList();
if (!held.Any()) if (!held.Any())
{ {
args.PushText(Loc.GetString("comp-hands-examine-empty", args.PushText(Loc.GetString("comp-hands-examine-empty",
@@ -191,7 +193,6 @@ public abstract partial class SharedHandsSystem : EntitySystem
} }
var heldList = ContentLocalizationManager.FormatList(held var heldList = ContentLocalizationManager.FormatList(held
.Where(x => !HasComp<HandVirtualItemComponent>(x))
.Select(x => Loc.GetString("comp-hands-examine-wrapper", .Select(x => Loc.GetString("comp-hands-examine-wrapper",
("item", Identity.Entity(x, EntityManager)))).ToList()); ("item", Identity.Entity(x, EntityManager)))).ToList());