fix: account for world when writing

This commit is contained in:
Anna 2023-02-19 23:55:10 -05:00
parent 290d79034c
commit fd1913f734
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ namespace OrangeGuidanceTomestone;
[JsonObject(NamingStrategyType = typeof(SnakeCaseNamingStrategy))]
public class MessageRequest {
public uint Territory { get; set; }
public uint? World { get; set; }
public uint? Ward { get; set; }
public uint? Plot { get; set; }
public float X { get; set; }

View File

@ -231,6 +231,7 @@ internal class Write : ITab {
if (ImGui.Button("Write") && valid && !inAir && this.Plugin.ClientState.LocalPlayer is { } player) {
var req = new MessageRequest {
Territory = this.Plugin.ClientState.TerritoryType,
World = this.Plugin.ClientState.LocalPlayer?.CurrentWorld.Id ?? 0,
Ward = this.Plugin.Common.Functions.Housing.Location?.Ward,
Plot = this.Plugin.Common.Functions.Housing.Location?.CombinedPlot(),
X = player.Position.X,