Skip to content

Commit

Permalink
forgot return on cache
Browse files Browse the repository at this point in the history
  • Loading branch information
HerXayah committed Dec 3, 2024
1 parent 3b66e21 commit e2677b1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static void iconFromName(
}
if (cache.containsKey(name)) {
lazyReturn.accept(cache.get(name));
return;
}
Laby.labyAPI().taskExecutor().getPool().submit(() -> {
Icon icon = Icon.url(FLAGS_URL + name + ".png");
Expand Down

0 comments on commit e2677b1

Please sign in to comment.