Skip to content

Commit

Permalink
Merge pull request #7 from way-zer/fix-loadColors
Browse files Browse the repository at this point in the history
修复:未调用 ContentLoader.loadColors 导致小地图颜色丢失
  • Loading branch information
way-zer authored Feb 16, 2022
2 parents b050b50 + 8887514 commit db99c31
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ class ContentsLoader : Mod() {
Log.infoTag("ContentsLoader", "Loaded ${it.lastContent!!::class.qualifiedName} costs ${time}ms")
}
if (!Vars.headless) {
val timeLoadColors = measureTimeMillis {
MyContentLoader.loadColors()
}
Log.infoTag("ContentsLoader", "ContentLoader.loadColors costs ${timeLoadColors}ms")
val timeLoadIcon = measureTimeMillis {
MyContentLoader.contents.forEach { it.contentMap.forEach(Content::loadIcon) }
}
Expand Down

0 comments on commit db99c31

Please sign in to comment.