Skip to content

Commit

Permalink
Update GlobalCommandInterpreter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
benpollarduk authored Nov 24, 2024
1 parent 23f86ec commit 90c8bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NetAF/Interpretation/GlobalCommandInterpreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public InterpretationResult Interpret(string input, Game game)
return InterpretationResult.Fail;

var commands = game.GetContextualCommands();
var command = Array.Find(commands, x => x.Command.InsensitiveEquals(noun) || x.Shortcut.InsensitiveEquals(noun));
var command = Array.Find(commands, x => x.Command.IsPlayerVisible && (x.Command.InsensitiveEquals(noun) || x.Shortcut.InsensitiveEquals(noun)));

Check failure on line 61 in NetAF/Interpretation/GlobalCommandInterpreter.cs

View workflow job for this annotation

GitHub Actions / build

'string' does not contain a definition for 'IsPlayerVisible' and no accessible extension method 'IsPlayerVisible' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 61 in NetAF/Interpretation/GlobalCommandInterpreter.cs

View workflow job for this annotation

GitHub Actions / build

'string' does not contain a definition for 'IsPlayerVisible' and no accessible extension method 'IsPlayerVisible' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)

if (command != null)
return new(true, new Help(command));
Expand Down

0 comments on commit 90c8bab

Please sign in to comment.