Skip to content

Commit

Permalink
fix not reloading on different load type
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Nov 6, 2023
1 parent be3b5a5 commit ddd7729
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game_handler/assets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,11 @@ function assets.get_pack(version, id, headless)
id = pack_data.id
asset_loading_text_channel:push("Loading pack '" .. id .. "' assets")
asset_loading_progress_channel:push(0)
if pack_data.loaded then
if pack_data.loaded and (pack_data.was_loaded_headlessly == headless or not headless) then
asset_loading_progress_channel:push(1)
return pack_data
end
pack_data.was_loaded_headlessly = headless
if is_compat then
if version == 21 then
-- pack may have dependencies
Expand Down

0 comments on commit ddd7729

Please sign in to comment.