Skip to content

Commit

Permalink
ignore not fully-deployed machina portals
Browse files Browse the repository at this point in the history
  • Loading branch information
xscreach committed Dec 27, 2023
1 parent 5b160fe commit bb5a4d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/machina-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ machinaTools.refreshLinkLengths = function () {
.filter((l) => l.options.team === window.TEAM_MAC && map.getBounds().contains(L.latLng(l.options.data.oLatE6 / 1e6, l.options.data.oLngE6 / 1e6)))
.reduce((previousValue, link) => {
var origin = window.portals[link.options.data.oGuid];
if (origin) {
if (origin && origin.options.data.resCount === 8) {
var level = origin.options.level;
var points = link.getLatLngs();
var linkLength = points[0].distanceTo(points[1]);
Expand Down

0 comments on commit bb5a4d8

Please sign in to comment.