Enchantments: say which callers have no language

full_name reads the process's language, which the server thread shares
with its window; only a process with no language loaded (a dedicated
server, the probes) keeps the English names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Ludovic MarieandClaude Opus 5.5 committed 2026-10-25 23:46:36 +01:00
1 parent 3762ab7cda
commit b7629cf656
1 file changed
+2 -2
+2 -2
View File
@@ -337,8 +337,8 @@ impl Enchantments {
let language = crate::lang::current();
self.full_name_in(language.as_deref(), id, level)
}
/// `full_name` against `language`; `None` keeps the English names loaded
/// above, which is what the server thread and the probes see.
/// `full_name` against `language`; `None` (no language loaded: a
/// dedicated server, the probes) keeps the English names loaded above.
pub fn full_name_in(
&self,
language: Option<&crate::lang::Language>,