Skip to content

Commit

Permalink
Fix Decorate for trees not being injected
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Jun 30, 2024
1 parent d6a70f0 commit efccd24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/script_manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -514,17 +514,23 @@ end


function ScriptMan_assemble_decorate_lump()

if PARAM.bool_dynamic_lights == 1 then -- TODO: Move these to respective modules.
SCRIPTS.decorate = ScriptMan_combine_script(SCRIPTS.decorate, GAME.RESOURCES.DYNAMIC_LIGHT_DECORATE)
end

if PARAM.custom_trees == "decorate" then
SCRIPTS.decorate = ScriptMan_combine_script(SCRIPTS.decorate, OBS_RESOURCE_PACK_EPIC_TEXTURES.TEMPLATES.DEC_TREES)
end

if SCRIPTS.decorate then
if ob_mod_enabled("compress_output") == 1 then
add_script_lump("DECORATE.txt", SCRIPTS.decorate)
else
add_script_lump("DECORATE", SCRIPTS.decorate)
end
end

end


Expand Down

0 comments on commit efccd24

Please sign in to comment.