Skip to content

Commit

Permalink
Fix node recording with changed Dalamud position.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Oct 7, 2021
1 parent bad6cc3 commit 27416da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Managers/NodeRecorder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ public int Scan()

var scale = GetMapScale(mapId);
var x = ConvertCoord(a.Position.X, scale);
var y = ConvertCoord(a.Position.Y, scale);
var y = ConvertCoord(a.Position.Z, scale);
if (!FindOrAddNodeLocation(node, mapId, id, x, y))
continue;

PluginLog.Verbose("[NodeRecorder] {Name} on map {MapId} - {RawX}|{RawY} -> {FloatX:F2}|{FloatY:F2}", a.Name, mapId,
a.Position.X, a.Position.Y, x / 100.0, y / 100.0);
a.Position.X, a.Position.Z, x / 100.0, y / 100.0);
++numNodes;
}

Expand Down

0 comments on commit 27416da

Please sign in to comment.