mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 09:17:47 +07:00
Fixed internal TileSetConfigs not getting loaded on android (#3831)
This commit is contained in:
parent
600f262cca
commit
cb9507c76d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user