From bc308847f4cb77a2dbb6dbfe3130ea5aa9647e70 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 27 Nov 2023 20:47:24 -0500 Subject: [PATCH] Clarify that only ASCII is supported --- core/assets/bundles/bundle.properties | 2 +- core/src/mindustry/logic/LExecutor.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index bb16016601..bf88e0992b 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -2347,7 +2347,7 @@ graphicstype.poly = Fill a regular polygon. graphicstype.linepoly = Draw a regular polygon outline. graphicstype.triangle = Fill a triangle. graphicstype.image = Draw an image of some content.\nex: [accent]@router[] or [accent]@dagger[]. -graphicstype.print = Draws text from the print buffer.\nClears the print buffer. +graphicstype.print = Draws text from the print buffer.\nOnly ASCII characters are allowed.\nClears the print buffer. lenum.always = Always true. lenum.idiv = Integer division. diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 6e2bf9ee4a..eaede37d20 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -1005,7 +1005,9 @@ public class LExecutor{ curX = exec.numi(x); //reset continue; } - exec.graphicsBuffer.add(DisplayCmd.get(LogicDisplay.commandPrint, packSign(curX + xOffset), packSign(curY + yOffset), next, 0, 0, 0)); + if(Fonts.logic.getData().hasGlyph(next)){ + exec.graphicsBuffer.add(DisplayCmd.get(LogicDisplay.commandPrint, packSign(curX + xOffset), packSign(curY + yOffset), next, 0, 0, 0)); + } curX += advance; }