File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
// @name Machina tracker
2
2
// @author McBen
3
3
// @category Layer
4
- // @version 1.1.0
4
+ // @version 1.1.1
5
5
// @description Show locations of Machina activities
6
6
7
7
/* exported setup, changelog --eslint */
8
8
/* global IITC, L */
9
9
10
10
var changelog = [
11
+ {
12
+ version : '1.1.1' ,
13
+ changes : [ 'Fix decayed messages attributed to Machina' ] ,
14
+ } ,
11
15
{
12
16
version : '1.1.0' ,
13
17
changes : [ 'Using `IITC.utils.formatAgo` instead of the plugin own function' ] ,
@@ -133,7 +137,7 @@ machinaTracker.processNewData = function (data) {
133
137
data . result . forEach ( ( json ) => {
134
138
if ( json [ 1 ] >= limit ) {
135
139
var newEvent = machinaTracker . createEvent ( json ) ;
136
- if ( newEvent . from && newEvent . to && [ window . TEAM_MAC , window . TEAM_NONE ] . includes ( window . teamStringToId ( newEvent . team ) ) ) {
140
+ if ( newEvent . from && newEvent . to && newEvent . team && [ window . TEAM_MAC , window . TEAM_NONE ] . includes ( window . teamStringToId ( newEvent . team ) ) ) {
137
141
var prevEvent = machinaTracker . events . find ( ( e ) => e . from . latLng . equals ( newEvent . from . latLng ) ) ;
138
142
if ( ! prevEvent ) {
139
143
machinaTracker . events . push ( newEvent ) ;
You can’t perform that action at this time.
0 commit comments