Fix font rendering

This commit is contained in:
2026-03-07 18:40:33 -03:00
parent 5ad4188567
commit 7fcce0da98
8 changed files with 307 additions and 148 deletions
+7 -12
View File
@@ -119,21 +119,16 @@ export function draw_item(item: ItemStack, x: number, y: number) {
if (item.max_amount !== 1) {
draw_text(
String(item.amount),
x + SLOT_SIZE + 2 - 4,
y + SLOT_SIZE + 2 - 4,
//2,
//"#3f3f3f",
//"bottom",
//"right",
x + SLOT_SIZE + 2 - 11 * 2,
y + SLOT_SIZE + 2 - 11 * 2,
1,
[63 / 255, 63 / 255, 63 / 255],
);
draw_text(
String(item.amount),
x + SLOT_SIZE - 4,
y + SLOT_SIZE - 4,
//2,
//"white",
//"bottom",
//"right",
x + SLOT_SIZE - 11 * 2,
y + SLOT_SIZE - 11 * 2,
1,
);
}
}