From 2b1d80f9f92486b9ab1868a0f84917ab551cffae Mon Sep 17 00:00:00 2001 From: SenseiKiwi Date: Thu, 22 Aug 2013 22:57:26 -0400 Subject: [PATCH] Fixed Config Loading Bug Fixed a problem that caused bundled configs to not load sometimes. --- .../mod_pocketDim/helpers/DungeonHelper.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java b/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java index 71516240..ac2fcfdf 100644 --- a/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java +++ b/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java @@ -190,7 +190,16 @@ public class DungeonHelper if (pack == null) { //Load the pack's configuration file - String configPath = directory + File.separator + STANDARD_CONFIG_FILE_NAME; + + String configPath; + if (isInternal) + { + configPath = directory + "/" + STANDARD_CONFIG_FILE_NAME; + } + else + { + configPath = directory + File.separator + STANDARD_CONFIG_FILE_NAME; + } DungeonPackConfig config = loadDungeonPackConfig(configPath, name, isInternal, reader); if (config == null) {