fix: trainAI not using the bin location

This commit is contained in:
GramingFoxTeam
2022-11-15 21:29:05 +03:00
parent 7f9ca77e03
commit bd2994388b
3 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import EventEmitter from 'node:events';
class HelperClient extends EventEmitter {
constructor({ server }) {
super();
if (!server.port) throw new Error('You did not specify the server port.');
if (!server?.port) throw new Error('You did not specify the server port.');
this.server = server;
};