Skip to content

Commit

Permalink
Fix hidden verb logic (OpenDreamProject#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle authored Feb 2, 2024
1 parent 143a44c commit 1f04fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDreamShared/Dream/VerbSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public string GetCategoryOrDefault(string defaultCategory) =>

// TODO: Hidden verbs probably shouldn't be sent to the client in the first place?
public bool IsHidden(bool ignoreHiddenAttr, sbyte seeInvisibility) =>
(!ignoreHiddenAttr && HiddenAttribute) || Name.StartsWith('.') || seeInvisibility < Invisibility;
(!ignoreHiddenAttr && (HiddenAttribute || Name.StartsWith('.'))) || seeInvisibility < Invisibility;

public override string ToString() => GetCommandName();
}
Expand Down

0 comments on commit 1f04fdd

Please sign in to comment.