Skip to content

Commit

Permalink
potential fix for languages w/o articles
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Mar 20, 2021
1 parent 3b1bb40 commit 5054c38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ private void OnHousingWardInfo(IntPtr dataPtr)

private void OnFoundOpenHouse(HousingWardInfo wardInfo, HouseInfoEntry houseInfoEntry, int plotNumber)
{
var districtName = this.territories.GetRow((uint)wardInfo.LandIdent.TerritoryTypeId).PlaceName.Value.NameNoArticle;
var place = this.territories.GetRow((uint)wardInfo.LandIdent.TerritoryTypeId).PlaceName.Value;
var districtName = place.NameNoArticle.RawString.Length > 0 ? place.NameNoArticle : place.Name; // languages like German do not use NameNoArticle (#2)
var worldName = this.worlds.GetRow((uint)wardInfo.LandIdent.WorldId).Name;

// gross way of getting the landset from the territorytype but the game does not send the correct landsetid
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.0.2.2")]
[assembly: AssemblyFileVersion("0.0.2.2")]
[assembly: AssemblyVersion("0.0.2.3")]
[assembly: AssemblyFileVersion("0.0.2.3")]
2 changes: 1 addition & 1 deletion autoSweep.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Name": "PaissaHouse",
"Description": "Makes note of open houses when viewing a housing ward from an aetheryte.",
"InternalName": "autoSweep",
"AssemblyVersion": "0.0.2.2",
"AssemblyVersion": "0.0.2.3",
"RepoUrl": "https://github.com/mommothazaz123/FFXIV_AutoSweep",
"ApplicableVersion": "any",
"Tags": ["housing"],
Expand Down

0 comments on commit 5054c38

Please sign in to comment.