Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
slotthhy committed Oct 4, 2023
1 parent 72e2bf4 commit 763274c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion TitleEdit/TitleEdit.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<DalamudLibPath>$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
<PluginVersion>2.2.6.12</PluginVersion>
<PluginVersion>2.2.6.13</PluginVersion>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework>
Expand Down
8 changes: 4 additions & 4 deletions TitleEdit/TitleEditPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private void DrawCreation()
Vector3 eyesPos = default;
Vector3 lookAt = default;
#if !DEBUG
if (_clientState.LocalPlayer?.Position == null)
if (DalamudApi.ClientState.LocalPlayer?.Position == null)
{
ImGui.TextColored(new Vector4(1f, 0f, 0f, 1f), "The current game state is invalid for creating a title screen.");
stateInvalid = true;
Expand Down Expand Up @@ -309,14 +309,14 @@ private void DrawCreation()
ImGui.PopTextWrapPos();
}
#else
if (!_territoryPaths.ContainsKey(_clientState.TerritoryType))
if (!_territoryPaths.ContainsKey(DalamudApi.ClientState.TerritoryType))
{
ImGui.TextColored(new Vector4(1f, 0f, 0f, 1f), "The current territory is not valid for a title screen.");
stateInvalid = true;
}
else
{
ImGui.Text($"Title screen zone: {_territoryPaths[_clientState.TerritoryType].PlaceName.Value.Name}");
ImGui.Text($"Title screen zone: {_territoryPaths[DalamudApi.ClientState.TerritoryType].PlaceName.Value.Name}");
}
#endif

Expand Down Expand Up @@ -512,7 +512,7 @@ private void DrawCreation()
#if DEBUG
scr.TerritoryPath = _terriPath;
#else
scr.TerritoryPath = _territoryPaths[_clientState.TerritoryType].Bg.ToString();
scr.TerritoryPath = _territoryPaths[DalamudApi.ClientState.TerritoryType].Bg.ToString();
#endif
scr.CameraPos = eyesPos;
scr.FixOnPos = lookAt;
Expand Down

0 comments on commit 763274c

Please sign in to comment.