From 7a48308ad9b30e28d39a95d5a94f1062f60686f5 Mon Sep 17 00:00:00 2001 From: "Maksym H." Date: Sun, 19 May 2024 11:52:13 +0400 Subject: [PATCH] Do not display more than 10 HUD entries --- hud.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/hud.lua b/hud.lua index 7047d3b..0216bfb 100644 --- a/hud.lua +++ b/hud.lua @@ -28,6 +28,7 @@ local function updateHud(player, name, pos) -- tinsert(areaStrings, S("Areas:")) for id, area in pairs(getAreasAtPos) do tinsert(areaStrings, createAreaString(area, id)) + if #areaStrings == 10 then break end end end