mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Remove rounding error on starmade version number, bump version
This commit is contained in:
parent
d1a7f78cba
commit
bccf9092c2
2 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue