1
0
mirror of https://github.com/GeyserMC/PackConverter.git synced 2026-01-06 15:41:51 +00:00

Fix out of bounds issue in FontTransformer when java font is not present

This commit is contained in:
Aurora
2025-07-16 17:57:44 +01:00
parent dd990a4ed4
commit 9bb220ef05

View File

@@ -99,7 +99,7 @@ public class FontTransformer implements TextureTransformer {
g.drawImage(
ImageUtil.scale(
ImageUtil.crop(
imgs.getOrDefault(fontMapping.javaTexture, new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB)),
imgs.getOrDefault(fontMapping.javaTexture, new BufferedImage((fontMapping.javaX * realCharX) + realCharX, (fontMapping.javaY * realCharY) + realCharY, BufferedImage.TYPE_INT_ARGB)),
fontMapping.javaX * realCharX,
fontMapping.javaY * realCharY,
realCharX,