diff options
Diffstat (limited to 'features/hud')
-rw-r--r-- | features/hud/HudTextElement.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/hud/HudTextElement.js b/features/hud/HudTextElement.js index 3d09319..46c660d 100644 --- a/features/hud/HudTextElement.js +++ b/features/hud/HudTextElement.js @@ -114,7 +114,7 @@ class HudTextElement { renderRaw() { let text = this.getText() - text.forEach((line, i) => { + for (let i = 0, line = text[0]; i < text.length; i++, line = text[i]) { Renderer.scale(this.locationSetting.scale, this.locationSetting.scale) switch (this.locationSetting.shadowType) { case 0: @@ -133,7 +133,7 @@ class HudTextElement { Renderer.drawString(line, this.locationSetting.x / this.locationSetting.scale, this.locationSetting.y / this.locationSetting.scale + 9 * i) break; } - }) + } } } |