mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
feat: add mb collect checkbox to general settings
This commit is contained in:
parent
76b2129a93
commit
0c9fd95478
5 changed files with 14 additions and 13 deletions
|
|
@ -25,7 +25,6 @@ namespace Dalamud.Game.Network.Internal
|
|||
{
|
||||
private readonly List<MarketBoardItemRequest> marketBoardRequests = new();
|
||||
|
||||
private readonly bool optOutMbUploads;
|
||||
private readonly IMarketBoardUploader uploader;
|
||||
|
||||
private MarketBoardPurchaseHandler marketBoardPurchaseHandler;
|
||||
|
|
@ -35,8 +34,6 @@ namespace Dalamud.Game.Network.Internal
|
|||
/// </summary>
|
||||
public NetworkHandlers()
|
||||
{
|
||||
this.optOutMbUploads = Service<DalamudStartInfo>.Get().OptOutMbCollection;
|
||||
|
||||
this.uploader = new UniversalisMarketBoardUploader();
|
||||
|
||||
Service<GameNetwork>.Get().NetworkMessage += this.OnNetworkMessage;
|
||||
|
|
@ -58,7 +55,7 @@ namespace Dalamud.Game.Network.Internal
|
|||
|
||||
if (direction == NetworkMessageDirection.ZoneUp)
|
||||
{
|
||||
if (!this.optOutMbUploads)
|
||||
if (configuration.DoMbCollect)
|
||||
{
|
||||
if (opCode == dataManager.ClientOpCodes["MarketBoardPurchaseHandler"])
|
||||
{
|
||||
|
|
@ -76,7 +73,7 @@ namespace Dalamud.Game.Network.Internal
|
|||
return;
|
||||
}
|
||||
|
||||
if (!this.optOutMbUploads)
|
||||
if (configuration.DoMbCollect)
|
||||
{
|
||||
if (opCode == dataManager.ServerOpCodes["MarketBoardItemRequestStart"])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue