fix emitter examining (#13369)

This commit is contained in:
Nemanja
2023-01-10 06:48:05 -05:00
committed by GitHub
parent e79d822206
commit a66790f158
3 changed files with 9 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ public abstract partial class SharedGunSystem
{
private void OnExamine(EntityUid uid, GunComponent component, ExaminedEvent args)
{
if (!args.IsInDetailsRange)
if (!args.IsInDetailsRange || !component.ShowExamineText)
return;
args.PushMarkup(Loc.GetString("gun-selected-mode-examine", ("color", ModeExamineColor), ("mode", GetLocSelector(component.SelectedMode))));