Remove rounding error on starmade version number, bump version
This commit is contained in:
parent
d1a7f78cba
commit
bccf9092c2
|
@ -11,7 +11,7 @@
|
||||||
],
|
],
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"author": "Michael Morrison",
|
"author": "Michael Morrison",
|
||||||
"version": "0.2.20",
|
"version": "0.2.21",
|
||||||
"repository" : {
|
"repository" : {
|
||||||
"type" : "git",
|
"type" : "git",
|
||||||
"url" : "https://github.com/sonicsnes/node-gamedig.git"
|
"url" : "https://github.com/sonicsnes/node-gamedig.git"
|
||||||
|
|
|
@ -43,7 +43,7 @@ module.exports = require('./core').extend({
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(typeof data[3] == 'number') state.raw.version = data[3];
|
if(typeof data[3] == 'number') state.raw.version = data[3].toFixed(7).replace(/0+$/, '');
|
||||||
if(typeof data[4] == 'string') state.name = data[4];
|
if(typeof data[4] == 'string') state.name = data[4];
|
||||||
if(typeof data[5] == 'string') state.raw.description = data[5];
|
if(typeof data[5] == 'string') state.raw.description = data[5];
|
||||||
if(typeof data[7] == 'number') state.raw.numplayers = data[7];
|
if(typeof data[7] == 'number') state.raw.numplayers = data[7];
|
||||||
|
|
Loading…
Reference in New Issue