Skip to content

Commit

Permalink
- Bugfix: 'Load' was not working when the file location did not end i…
Browse files Browse the repository at this point in the history
…n .json
  • Loading branch information
jawslouis committed Feb 25, 2023
1 parent 4879656 commit 1ced66e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
8 changes: 4 additions & 4 deletions MakePlacePlugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Author": "Jawslouis",
"Name": "MakePlace Plugin",
"InternalName": "MakePlacePlugin",
"AssemblyVersion": "2.20",
"AssemblyVersion": "2.21",
"Punchline": "Automatically save & load furniture layouts in your house.",
"Description": "Automatically save & load the positions of house furniture. Import/export layouts from the MakePlace program.",
"ApplicableVersion": "any",
Expand All @@ -17,9 +17,9 @@
"LoadPriority": 0,
"IconUrl": "https://raw.githubusercontent.com/jawslouis/MakePlacePlugin/master/icon.png",
"DownloadCount": 68397,
"DownloadLinkInstall": "https://github.com/jawslouis/MakePlacePlugin/releases/download/v2.20/MakePlacePlugin.zip",
"DownloadLinkTesting": "https://github.com/jawslouis/MakePlacePlugin/releases/download/v2.20/MakePlacePlugin.zip",
"DownloadLinkUpdate": "https://github.com/jawslouis/MakePlacePlugin/releases/download/v2.20/MakePlacePlugin.zip",
"DownloadLinkInstall": "https://github.com/jawslouis/MakePlacePlugin/releases/download/v2.21/MakePlacePlugin.zip",
"DownloadLinkTesting": "https://github.com/jawslouis/MakePlacePlugin/releases/download/v2.21/MakePlacePlugin.zip",
"DownloadLinkUpdate": "https://github.com/jawslouis/MakePlacePlugin/releases/download/v2.21/MakePlacePlugin.zip",
"_isDip17Plugin": false,
"_Dip17Channel": null
}]
4 changes: 0 additions & 4 deletions MakePlacePlugin/Gui/ConfigurationWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,6 @@ unsafe private void DrawGeneralSettings()
LogError("(Housing -> Indoor/Outdoor Furnishings)");

}
else if (!Config.SaveLocation.EndsWith(".json"))
{
LogError("Error: Json layout file not specified");
}
else
{

Expand Down
7 changes: 1 addition & 6 deletions MakePlacePlugin/MakePlacePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public MakePlacePlugin(
Memory.Init(Scanner);
LayoutManager = new SaveLayoutManager(this, ChatGui, Config);

PluginLog.Log("MakePlace Plugin v2.20 initialized");
PluginLog.Log("MakePlace Plugin v2.21 initialized");
}
public void Initialize()
{
Expand Down Expand Up @@ -425,11 +425,6 @@ public unsafe void MatchLayout()
houseItem.CorrectLocation = locationError.LengthSquared() < 0.0001;
houseItem.CorrectRotation = localRotation - houseItem.Rotate < 0.001;

if (!houseItem.CorrectRotation)
{
Log($"localRotation: {localRotation}, houseItem rotation: {houseItem.Rotate * 180 / Math.PI}");
}

houseItem.ItemStruct = (IntPtr)gameObject.Item;
}

Expand Down
2 changes: 1 addition & 1 deletion MakePlacePlugin/MakePlacePlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<DalamudLibPath>$(AppData)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
<PluginVersion>2.20</PluginVersion>
<PluginVersion>2.21</PluginVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 1ced66e

Please sign in to comment.