mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 20:33:40 +01:00
feat: use Lumina for client state resolvers
This commit is contained in:
parent
7de63374ea
commit
db474652ee
13 changed files with 58 additions and 30 deletions
|
|
@ -119,7 +119,7 @@ namespace Dalamud.DiscordBot {
|
|||
var world = string.Empty;
|
||||
|
||||
if (this.dalamud.ClientState.Actors.Length > 0)
|
||||
world = this.dalamud.ClientState.LocalPlayer.CurrentWorld.Name;
|
||||
world = this.dalamud.ClientState.LocalPlayer.CurrentWorld.GameData.Name;
|
||||
|
||||
var embedBuilder = new EmbedBuilder
|
||||
{
|
||||
|
|
@ -144,7 +144,7 @@ namespace Dalamud.DiscordBot {
|
|||
dynamic item = XivApi.GetItem(itemId).GetAwaiter().GetResult();
|
||||
|
||||
var character = this.dalamud.ClientState.LocalPlayer;
|
||||
var characterInfo = await GetCharacterInfo(character.Name, character.HomeWorld.Name);
|
||||
var characterInfo = await GetCharacterInfo(character.Name, character.HomeWorld.GameData.Name);
|
||||
|
||||
var embedBuilder = new EmbedBuilder {
|
||||
Title = (isHq ? "<:hq:593406013651156994> " : "") + item.Name,
|
||||
|
|
@ -203,7 +203,7 @@ namespace Dalamud.DiscordBot {
|
|||
senderName = wasOutgoingTell ? this.dalamud.ClientState.LocalPlayer.Name : parsedSender.TextValue;
|
||||
}
|
||||
|
||||
senderWorld = this.dalamud.ClientState.LocalPlayer.HomeWorld.Name;
|
||||
senderWorld = this.dalamud.ClientState.LocalPlayer.HomeWorld.GameData.Name;
|
||||
} else {
|
||||
playerLink.Resolve();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue