mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-22 17:14:58 -05:00
Don't inputlog >version if Git isn't installed
This commit is contained in:
@@ -189,7 +189,7 @@ class Battle extends Dex.ModdedDex {
|
||||
|
||||
const inputOptions = {formatid: options.formatid, seed: this.prng.seed};
|
||||
if (this.rated) inputOptions.rated = this.rated;
|
||||
if (global.__version !== undefined) {
|
||||
if (global.__version) {
|
||||
this.inputLog.push(`>version ${global.__version}`);
|
||||
}
|
||||
this.inputLog.push(`>start ` + JSON.stringify(inputOptions));
|
||||
|
||||
Reference in New Issue
Block a user