mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: remove hasSeenLoadingMsg check for now, switch discord back to a task
This commit is contained in:
parent
9df15fcae4
commit
c069f75fba
1 changed files with 3 additions and 4 deletions
|
|
@ -121,7 +121,7 @@ namespace Dalamud.Game {
|
|||
}
|
||||
}
|
||||
|
||||
#if !DEBUG
|
||||
#if !DEBUG && false
|
||||
if (!this.hasSeenLoadingMsg)
|
||||
return;
|
||||
#endif
|
||||
|
|
@ -167,10 +167,9 @@ namespace Dalamud.Game {
|
|||
|
||||
Log.Debug($"Probable retainer sale: {message}, decoded item {itemLink.ItemId}, HQ {itemLink.IsHQ}");
|
||||
|
||||
int itemValue = 0;
|
||||
var valueInfo = matchInfo.Groups["value"];
|
||||
// not sure if using a culture here would work correctly, so just strip symbols instead
|
||||
if (!valueInfo.Success || !int.TryParse(valueInfo.Value.Replace(",", "").Replace(".", ""), out itemValue))
|
||||
if (!valueInfo.Success || !int.TryParse(valueInfo.Value.Replace(",", "").Replace(".", ""), out var itemValue))
|
||||
continue;
|
||||
|
||||
Task.Run(() => this.dalamud.BotManager.ProcessRetainerSale(itemLink.ItemId, itemValue, itemLink.IsHQ));
|
||||
|
|
@ -180,7 +179,7 @@ namespace Dalamud.Game {
|
|||
|
||||
var messageCopy = message;
|
||||
var senderCopy = sender;
|
||||
this.dalamud.BotManager.ProcessChatMessage(type, messageCopy, senderCopy);
|
||||
Task.Run(() => this.dalamud.BotManager.ProcessChatMessage(type, messageCopy, senderCopy));
|
||||
|
||||
// Handle all of this with SeString some day
|
||||
if ((this.HandledChatTypeColors.ContainsKey(type) || type == XivChatType.Say || type == XivChatType.Shout ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue