Skip to content

Commit

Permalink
Fixed Uncaught TypeError when using §k without text
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro270707 committed Mar 7, 2024
1 parent d3ac8bd commit edbc9de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/minecraft-tip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit edbc9de

Please sign in to comment.