Fix incorrect element name in rocket info

This commit is contained in:
Cooldude2606
2025-03-07 14:22:29 +00:00
parent e9fc417399
commit d27129da26
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ local section = Gui.element("autofill_section")
return def:unlink_element(section_table)
end)
:on_click(function(def, player, element, event)
event.element = element.parent.alignment[toggle_section.name]
event.element = element.parent.flow[toggle_section.name]
toggle_section:raise_event(event)
end)

View File

@@ -443,7 +443,7 @@ local section = Gui.element("rocket_info_section")
return definition:unlink_element(scroll_table)
end)
:on_click(function(def, player, element, event)
event.element = element.parent.alignment[toggle_section.name]
event.element = element.parent.flow[toggle_section.name]
toggle_section:raise_event(event)
end)