fix hand examine (#21309)
This commit is contained in:
@@ -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());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user