Skip to content

Commit

Permalink
Fix loading multiple textures with the same file name with addSimpleT…
Browse files Browse the repository at this point in the history
…exture. (chunky-dev#1644)
  • Loading branch information
leMaik committed Oct 3, 2023
1 parent b24700e commit 98d69c2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3658,8 +3658,7 @@ private static void addTextureLoader(Field textureField) {
}

private static void addSimpleTexture(String file, Texture texture) {
String[] path = file.split("/");
addSimpleTexture(path[path.length - 1], file, texture);
addSimpleTexture(file, file, texture);
}

private static void addSimpleTexture(String name, String file, Texture texture) {
Expand Down

0 comments on commit 98d69c2

Please sign in to comment.