Skip to content

Commit

Permalink
2.1.3d...but again.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenevolusGoat committed Aug 28, 2024
1 parent 1687a48 commit fd8cd4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/save_manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1104,8 +1104,10 @@ function SaveManager.Init(mod)
modReference:AddPriorityCallback(ModCallbacks.MC_POST_SLOT_INIT, CallbackPriority.IMPORTANT, onEntityInit)
modReference:AddPriorityCallback(ModCallbacks.MC_POST_SAVESLOT_LOAD, CallbackPriority.IMPORTANT, postSaveSlotLoad)
modReference:AddPriorityCallback(ModCallbacks.MC_MENU_INPUT_ACTION, CallbackPriority.IMPORTANT, function()
dontSaveModData = MenuManager.GetActiveMenu() == MainMenuType.TITLE or
MenuManager.GetActiveMenu() == MainMenuType.MODS
local success, currentMenu = pcall(MenuManager.GetActiveMenu)
if not success then return end
dontSaveModData = currentMenu == MainMenuType.TITLE or
currentMenu == MainMenuType.MODS
detectLuamod()
end)
else
Expand Down

0 comments on commit fd8cd4c

Please sign in to comment.