Skip to content

Commit

Permalink
Update PackReferencePartImage.java
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek committed Jun 25, 2024
1 parent c8accbf commit 0670242
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ public void add(final PackGeneratorContext context) {
}

final Pack pack = context.pack();
final String key = parent + this.key;
pack.with(
(ResourceIdentifierImage) () -> this.key,
(ResourceIdentifierImage) () -> key,
ResourceProducers.image(
Font.MINECRAFT_DEFAULT,
Texture.texture(
Key.key(namespace, parent + this.key + ".png"),
Key.key(namespace, key + ".png"),
Writable.path(root.resolve(parent + this.image))
),
new TextureProperties(this.height, this.ascent)
Expand Down

0 comments on commit 0670242

Please sign in to comment.