mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Fixup CommandManager language/regex setter
This commit is contained in:
parent
b3f41c9049
commit
072cee417b
1 changed files with 7 additions and 14 deletions
|
|
@ -31,21 +31,14 @@ namespace Dalamud.Game.Command
|
||||||
{
|
{
|
||||||
this.dalamud = dalamud;
|
this.dalamud = dalamud;
|
||||||
|
|
||||||
switch (language)
|
this.currentLangCommandRegex = language switch
|
||||||
{
|
{
|
||||||
case ClientLanguage.Japanese:
|
ClientLanguage.Japanese => this.commandRegexJp,
|
||||||
this.currentLangCommandRegex = this.commandRegexJp;
|
ClientLanguage.English => this.commandRegexEn,
|
||||||
break;
|
ClientLanguage.German => this.commandRegexDe,
|
||||||
case ClientLanguage.English:
|
ClientLanguage.French => this.commandRegexFr,
|
||||||
this.currentLangCommandRegex = this.commandRegexEn;
|
_ => this.currentLangCommandRegex,
|
||||||
break;
|
};
|
||||||
case ClientLanguage.German:
|
|
||||||
this.currentLangCommandRegex = this.commandRegexDe;
|
|
||||||
break;
|
|
||||||
case ClientLanguage.French:
|
|
||||||
this.currentLangCommandRegex = this.commandRegexFr;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
dalamud.Framework.Gui.Chat.CheckMessageHandled += this.OnCheckMessageHandled;
|
dalamud.Framework.Gui.Chat.CheckMessageHandled += this.OnCheckMessageHandled;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue