Fixed issue where loading old config files caused new config options to disappear
This commit is contained in:
1 parent
b4dae6b71a
commit
740f8e06b3
2 files changed
+7
-3
No files matched your search
@@ -316,7 +316,7 @@ local hideDescToggle= false
|
|||||||
|
|
||||||
-- check if an entity is part of the describable entities
|
-- check if an entity is part of the describable entities
|
||||||
local function isEntityAllowed(entity)
|
local function isEntityAllowed(entity)
|
||||||
local isAllowed = false
|
local isAllowed = false
|
||||||
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_COLLECTIBLE and EIDConfig["DisplayItemInfo"])
|
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_COLLECTIBLE and EIDConfig["DisplayItemInfo"])
|
||||||
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TRINKET and EIDConfig["DisplayTrinketInfo"])
|
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TRINKET and EIDConfig["DisplayTrinketInfo"])
|
||||||
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TAROTCARD and EIDConfig["DisplayCardInfo"])
|
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TAROTCARD and EIDConfig["DisplayCardInfo"])
|
||||||
@@ -469,7 +469,11 @@ local json = require("json")
|
|||||||
function OnGameStart(isSave)
|
function OnGameStart(isSave)
|
||||||
--Loading Moddata--
|
--Loading Moddata--
|
||||||
if EID:HasData() then
|
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
|
||||||
end
|
end
|
||||||
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, OnGameStart)
|
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, OnGameStart)
|
||||||
|
|||||||
+1
-1
@@ -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
|
- Rickyy for creating the incredible polish language pack
|
||||||
- Marcelino Cruz for creating the portuguese 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>
|
- [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>
|
<visibility>Public</visibility>
|
||||||
<tag id="Lua"/>
|
<tag id="Lua"/>
|
||||||
<tag id="Items"/>
|
<tag id="Items"/>
|
||||||
|
|||||||
Reference in new issue
Block a user