Fixed Config Loading Bug
Fixed a problem that caused bundled configs to not load sometimes.
This commit is contained in:
parent
db3351441d
commit
2b1d80f9f9
1 changed files with 10 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue