src/components/InstancePicker.js
/*
   * Adds the instance to the list when it is started.
   */
Adds the instance to the list when it is started.
Adds the instance to the list when it is started .
onInstanceCreated(instanceName, maxPlayers, gamemode, buttons) {
    const instance = {
      name: instanceName,
      currentlyPlaying: 0,
      maxPlayers,
      gamemode,
      buttons,
    };
    if (!this.isFiltered(instanceName)) {
      const { instances } = this.state;
      instances[instanceName] = instance;
      this.setState({ instances });
    }
    this.instances[instanceName] = instance;
  }
onInstanceCreated ( instanceName , maxPlayers , gamemode , buttons ) { const instance = { name : instanceName , currentlyPlaying : 0 , maxPlayers , gamemode , buttons , } ; if ( ! this . isFiltered ( instanceName ) ) { const { instances } = this . state ; instances [ instanceName ] = instance ; this . setState ( { instances } ) ; } this . instances [ instanceName ] = instance ; }
Adds the instance to the list when it is started.
Adds the instance to the list when it is started .