mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-13 00:45:11 +09:00
Fix a nil config read and two key types
`config.temp_warning_limit` does not exist, the warnings config defines `script_warning_limit`, and the locale expects it as `__3__/__4__`, so the command was printing nil. map_tags is keyed by the force name joined to the tag number, and custom_color is the Color union. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -200,7 +200,7 @@ function Roles.debug()
|
||||
local output = ""
|
||||
for index, role_name in ipairs(Roles.config.order) do
|
||||
local role = Roles.config.roles[role_name]
|
||||
local color = role.custom_color or Colours.white
|
||||
local color = role.custom_color or Colours.white --[[@as Color.struct]]
|
||||
local color_str = string.format("[color=%d, %d, %d]", color.r, color.g, color.b)
|
||||
output = output .. string.format("\n%s %s) %s[/color]", color_str, index, serpent.line(role))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user