Expand compat to 0.17 (#711)

This commit is contained in:
Cooldude2606 authored and GitHub committed 2024-12-13 13:48:52 +00:00
1 parent 87746edbf5
commit ff9ba0271f
8 files changed
+138 -89

No files matched your search

+2 -3
View File
@@ -33,8 +33,7 @@ end
--- @param no_early_return boolean?
--- @return table
local function get_script_data(no_early_return)
local script_data = compat.script_data()
local research_sync = script_data.research_sync
local research_sync = compat.script_data.research_sync
if research_sync and not no_early_return then
return research_sync
end
@@ -56,7 +55,7 @@ local function get_script_data(no_early_return)
}
end
script_data.research_sync = research_sync
compat.script_data.research_sync = research_sync
return research_sync
end