Skip to content

Commit

Permalink
Limit area name size
Browse files Browse the repository at this point in the history
  • Loading branch information
MoNTE48 committed May 28, 2024
1 parent a79d56b commit e5df658
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ local tconcat, tinsert = table.concat, table.insert
local creative_mode = minetest.settings:get_bool("creative_mode")

local function createAreaString(area, id)
local parts = {"🛡️ ", area.name, " [", id, "] (", area.owner, ")"}
local area_name = area.name:sub(1, 64)
local parts = {"🛡️ ", area_name, " [", id, "] (", area.owner, ")"}
if area.open then
tinsert(parts, " [" .. S("Open") .. "]")
end
Expand Down

0 comments on commit e5df658

Please # to comment.