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

Poll fonts to prevent adding useless entries, add missing mapping

This commit is contained in:
Aurora
2025-07-22 21:55:33 +01:00
parent 6a7eb92e4c
commit c38991d91c
2 changed files with 3 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ public class FontTransformer implements TextureTransformer {
containedCharacters.get(upperData).add(fontData);
images.computeIfAbsent(fontData.filename(), filename -> {
Texture texture = context.peekOrVanilla(filename); // TODO Should we poll this instead?
Texture texture = context.pollOrPeekVanilla(filename); // TODO Should we poll this instead?
try {
return texture == null ? null : this.readImage(texture);
} catch (IOException e) {
@@ -138,7 +138,7 @@ public class FontTransformer implements TextureTransformer {
// Now we can find where the character belongs in the bedrock image
int desX = position % 16;
int desY = position / 16;
int desY = position / 16;
g.drawImage(
ImageUtil.scale(

View File

@@ -501,6 +501,7 @@
"stonecutter_saw": "stonecutter2_saw",
"kelp_plant": ["kelp_a", "kelp_b", "kelp_c", "kelp_d"],
"kelp": ["kelp_top", "kelp_top_bulb"],
"firefly_bush_emissive": "firefly_bush_firefly",
"acacia_trapdoor": "acacia_trapdoor",