1
0
mirror of https://github.com/GeyserMC/Rainbow.git synced 2025-12-19 14:59:16 +00:00

Client module fixes

This commit is contained in:
Eclipse
2025-11-12 14:06:56 +00:00
parent fc58393acc
commit ebb7d15479
9 changed files with 32 additions and 33 deletions

View File

@@ -18,11 +18,11 @@ public class Rainbow {
return identifier.toString().replace(':', '.').replace('/', '_');
}
public static Identifier decorateResourceLocation(Identifier identifier, String type, String extension) {
public static Identifier decorateIdentifier(Identifier identifier, String type, String extension) {
return identifier.withPath(path -> type + "/" + path + "." + extension);
}
public static Identifier decorateTextureLocation(Identifier identifier) {
return decorateResourceLocation(identifier, "textures", "png");
public static Identifier decorateTextureIdentifier(Identifier identifier) {
return decorateIdentifier(identifier, "textures", "png");
}
}

View File

@@ -125,7 +125,7 @@ public class BedrockPack {
futures.add(serializer.saveJson(BedrockTextureAtlas.CODEC, BedrockTextureAtlas.itemAtlas(name, itemTextures), paths.itemAtlas()));
Function<TextureHolder, CompletableFuture<?>> textureSaver = texture -> {
Identifier textureIdentifier = Rainbow.decorateTextureLocation(texture.location());
Identifier textureIdentifier = Rainbow.decorateTextureIdentifier(texture.location());
return texture.save(context.assetResolver(), serializer, paths.packRoot().resolve(textureIdentifier.getPath()), reporter);
};