Fixed internal TileSetConfigs not getting loaded on android (#3831)

This commit is contained in:
GGGuenni 2021-04-22 10:00:35 +02:00 committed by GitHub
parent 600f262cca
commit cb9507c76d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,11 @@ object TileSetCache : HashMap<String, TileSetConfig>(){
clear()
var tileSetName = ""
//load default TileSets
for (configFile in Gdx.files.local("jsons/TileSets").list()){
//load internal TileSets
val fileHandles = if (consoleMode) FileHandle("jsons/TileSets").list()
else Gdx.files.internal("jsons/TileSets").list()
for (configFile in fileHandles){
tileSetName = configFile.nameWithoutExtension().removeSuffix("Config")
try {
if (this[tileSetName] == null)