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:
@@ -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(
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user