mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
update to lumina 2.0.0, fix related breakages in dalamud
This commit is contained in:
parent
75b722eae0
commit
2bbe4fc4ba
19 changed files with 69 additions and 49 deletions
|
|
@ -4,7 +4,7 @@ using Newtonsoft.Json;
|
|||
namespace Dalamud.Game.Network.MarketBoardUploaders.Universalis {
|
||||
internal class UniversalisHistoryUploadRequest {
|
||||
[JsonProperty("worldID")]
|
||||
public int WorldId { get; set; }
|
||||
public uint WorldId { get; set; }
|
||||
|
||||
[JsonProperty("itemID")]
|
||||
public uint ItemId { get; set; }
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using Newtonsoft.Json;
|
|||
namespace Dalamud.Game.Network.MarketBoardUploaders.Universalis {
|
||||
internal class UniversalisItemListingsUploadRequest {
|
||||
[JsonProperty("worldID")]
|
||||
public int WorldId { get; set; }
|
||||
public uint WorldId { get; set; }
|
||||
|
||||
[JsonProperty("itemID")]
|
||||
public uint ItemId { get; set; }
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ namespace Dalamud.Game.Network.Universalis.MarketBoardUploaders {
|
|||
var uploader = this.dalamud.ClientState.LocalContentId;
|
||||
|
||||
var listingsRequestObject = new UniversalisItemListingsUploadRequest();
|
||||
listingsRequestObject.WorldId = this.dalamud.ClientState.LocalPlayer.CurrentWorld.Id;
|
||||
listingsRequestObject.WorldId = this.dalamud.ClientState.LocalPlayer?.CurrentWorld.Id ?? 0;
|
||||
listingsRequestObject.UploaderId = uploader;
|
||||
listingsRequestObject.ItemId = request.CatalogId;
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ namespace Dalamud.Game.Network.Universalis.MarketBoardUploaders {
|
|||
Log.Verbose(upload);
|
||||
|
||||
var historyRequestObject = new UniversalisHistoryUploadRequest();
|
||||
historyRequestObject.WorldId = this.dalamud.ClientState.LocalPlayer.CurrentWorld.Id;
|
||||
historyRequestObject.WorldId = this.dalamud.ClientState.LocalPlayer?.CurrentWorld.Id ?? 0;
|
||||
historyRequestObject.UploaderId = uploader;
|
||||
historyRequestObject.ItemId = request.CatalogId;
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ namespace Dalamud.Game.Network.Universalis.MarketBoardUploaders {
|
|||
using (var client = new WebClient())
|
||||
{
|
||||
var taxRatesRequest = new UniversalisTaxUploadRequest();
|
||||
taxRatesRequest.WorldId = this.dalamud.ClientState.LocalPlayer.CurrentWorld.Id;
|
||||
taxRatesRequest.WorldId = this.dalamud.ClientState.LocalPlayer?.CurrentWorld.Id ?? 0;
|
||||
taxRatesRequest.UploaderId = this.dalamud.ClientState.LocalContentId;
|
||||
|
||||
taxRatesRequest.TaxData = new UniversalisTaxData {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Dalamud.Game.Network.MarketBoardUploaders.Universalis
|
|||
public ulong UploaderId { get; set; }
|
||||
|
||||
[JsonProperty("worldID")]
|
||||
public int WorldId { get; set; }
|
||||
public uint WorldId { get; set; }
|
||||
|
||||
[JsonProperty("marketTaxRates")]
|
||||
public UniversalisTaxData TaxData { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue