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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user