Skip to content

Commit

Permalink
fix: Fix file extension check in SkinFileCache
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeV220 committed Nov 9, 2023
1 parent c1d6342 commit 14164df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void cache() {
this.skinOverlay.getLogger().info("skins folder didn't exist, creating one and copy the default skins for it.");
}

for (File file : Objects.requireNonNull(this.skinOverlay.getSkinsDataFolder().listFiles((dir, name) -> name.endsWith(".yml")))) {
for (File file : Objects.requireNonNull(this.skinOverlay.getSkinsDataFolder().listFiles((dir, name) -> name.endsWith(".png")))) {
final String skinName = file.getName().substring(0, file.getName().length() - 4);

if (skinName.isEmpty()) {
Expand Down

0 comments on commit 14164df

Please sign in to comment.