Fixed issue where loading old config files caused new config options to disappear

This commit is contained in:
wofsauge committed 2020-04-06 18:33:20 +02:00
1 parent b4dae6b71a
commit 740f8e06b3
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -469,7 +469,11 @@ local json = require("json")
function OnGameStart(isSave)
--Loading Moddata--
if EID:HasData() then
EIDConfig = json.decode(Isaac.LoadModData(EID))
savedEIDConfig = json.decode(Isaac.LoadModData(EID))
for key, value in pairs(EIDConfig) do
if savedEIDConfig[key]~=nil then EIDConfig[key]=savedEIDConfig[key] end
end
end
end
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, OnGameStart)
+1 -1
View File
@@ -60,7 +60,7 @@ Same as aboth but the path is: /home/%YourUsernameHere%/.steam/steam/steamapps/w
- Rickyy for creating the incredible polish language pack
- Marcelino Cruz for creating the portuguese language pack
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating a awesome new Languagepack and providing ideas for new functionalities</description>
<version>1.63</version>
<version>1.65</version>
<visibility>Public</visibility>
<tag id="Lua"/>
<tag id="Items"/>