Skip to content

Commit

Permalink
Fix text box on goon by fixing element lookup (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle authored Jan 20, 2025
1 parent 3976b02 commit 9a64cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenDreamClient/Interface/Descriptors/InterfaceDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public InterfaceDescriptor(List<WindowDescriptor> windowDescriptors, List<MacroS
MenuDescriptors = menuDescriptors;
}

public ElementDescriptor? GetElementDescriptor(string name) {
public ElementDescriptor? GetElementDescriptor(string id) {
return WindowDescriptors.Concat<ElementDescriptor>(MacroSetDescriptors)
.Concat(MenuDescriptors).FirstOrDefault(descriptor => descriptor.Name.Value == name);
.Concat(MenuDescriptors).FirstOrDefault(descriptor => descriptor.Id.Value == id);
}
}

Expand Down

0 comments on commit 9a64cda

Please sign in to comment.