Skip to content

Commit

Permalink
Attempting to read the "hidden" field on a proc will return null and …
Browse files Browse the repository at this point in the history
…emit a warning (#1792)
  • Loading branch information
Kapu1178 authored May 16, 2024
1 parent a769dd7 commit e21b8df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OpenDreamRuntime/DreamThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ public DreamValue GetField(string field) {
return (_verbDesc != null) ? new DreamValue(_verbDesc) : DreamValue.Null;
case "invisibility":
return new DreamValue(Invisibility);
case "hidden":
Logger.GetSawmill("opendream.dmproc").Warning("The 'hidden' field on verbs will always return null.");
return DreamValue.Null;
default:
throw new Exception($"Cannot get field \"{field}\" from {OwningType.ToString()}.{Name}()");
}
Expand Down

0 comments on commit e21b8df

Please sign in to comment.