codemuffin

BOI Workshop - Visible Tears - Mod Fix

Sep 30th, 2022
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | Gaming | 0 0
  1. --[[
  2. File: main.lua, here:
  3. mods\!!!alpha_visible_tears_2775028938\main.lua
  4.  
  5. Screenshots of the edit:
  6. https://imgur.com/a/nQ247ik
  7.  
  8. Change lines 34 - 40 to this:
  9. -------------------------------]]
  10.  
  11. mod:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, function(_, continued)
  12.     loadModData() -- replaced `saveModData()` with `loadModData()`
  13. end)
  14.  
  15. mod:AddCallback(ModCallbacks.MC_PRE_GAME_EXIT, function (_, gameOver) -- replaced `MC_POST_GAME_END` with `MC_PRE_GAME_EXIT`
  16.     saveModData()
  17. end)
  18.  
Add Comment
Please, Sign In to add comment