Remove rounding error on starmade version number, bump version

This commit is contained in:
Michael Morrison 2015-01-17 21:14:34 -06:00
parent d1a7f78cba
commit bccf9092c2
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
],
"main": "lib/index.js",
"author": "Michael Morrison",
"version": "0.2.20",
"version": "0.2.21",
"repository" : {
"type" : "git",
"url" : "https://github.com/sonicsnes/node-gamedig.git"

View File

@ -43,7 +43,7 @@ module.exports = require('./core').extend({
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[5] == 'string') state.raw.description = data[5];
if(typeof data[7] == 'number') state.raw.numplayers = data[7];