diff --git a/js/minecraft-tip.js b/js/minecraft-tip.js index 911c297..6e86447 100644 --- a/js/minecraft-tip.js +++ b/js/minecraft-tip.js @@ -323,6 +323,7 @@ class TextRenderer { } getRandomTextFrom(originalText) { + if (originalText == '') return originalText; let newText = ''; for (const char of originalText) { const width = this.getWidth(char, false);