fix: account for world when writing
This commit is contained in:
parent
290d79034c
commit
fd1913f734
|
@ -7,6 +7,7 @@ namespace OrangeGuidanceTomestone;
|
||||||
[JsonObject(NamingStrategyType = typeof(SnakeCaseNamingStrategy))]
|
[JsonObject(NamingStrategyType = typeof(SnakeCaseNamingStrategy))]
|
||||||
public class MessageRequest {
|
public class MessageRequest {
|
||||||
public uint Territory { get; set; }
|
public uint Territory { get; set; }
|
||||||
|
public uint? World { get; set; }
|
||||||
public uint? Ward { get; set; }
|
public uint? Ward { get; set; }
|
||||||
public uint? Plot { get; set; }
|
public uint? Plot { get; set; }
|
||||||
public float X { get; set; }
|
public float X { get; set; }
|
||||||
|
|
|
@ -231,6 +231,7 @@ internal class Write : ITab {
|
||||||
if (ImGui.Button("Write") && valid && !inAir && this.Plugin.ClientState.LocalPlayer is { } player) {
|
if (ImGui.Button("Write") && valid && !inAir && this.Plugin.ClientState.LocalPlayer is { } player) {
|
||||||
var req = new MessageRequest {
|
var req = new MessageRequest {
|
||||||
Territory = this.Plugin.ClientState.TerritoryType,
|
Territory = this.Plugin.ClientState.TerritoryType,
|
||||||
|
World = this.Plugin.ClientState.LocalPlayer?.CurrentWorld.Id ?? 0,
|
||||||
Ward = this.Plugin.Common.Functions.Housing.Location?.Ward,
|
Ward = this.Plugin.Common.Functions.Housing.Location?.Ward,
|
||||||
Plot = this.Plugin.Common.Functions.Housing.Location?.CombinedPlot(),
|
Plot = this.Plugin.Common.Functions.Housing.Location?.CombinedPlot(),
|
||||||
X = player.Position.X,
|
X = player.Position.X,
|
||||||
|
|
Loading…
Reference in New Issue