Beispiel #1
0
  /**
   * Called a bit later on during initialization to finish loading mods Also initializes key
   * bindings
   */
  @SuppressWarnings("deprecation")
  public void finishMinecraftLoading() {
    if (modsMissing != null
        || wrongMC != null
        || customError != null
        || dupesFound != null
        || modSorting != null) {
      return;
    }
    try {
      Loader.instance().initializeMods();
    } catch (CustomModLoadingErrorDisplayException custom) {
      FMLLog.log(
          Level.SEVERE, custom, "A custom exception was thrown by a mod, the game will now halt");
      customError = custom;
      return;
    } catch (LoaderException le) {
      haltGame(
          "There was a severe problem during mod loading that has caused the game to fail", le);
      return;
    }
    // Reload resources
    client.func_110436_a();
    RenderingRegistry.instance()
        .loadEntityRenderers(
            (Map<Class<? extends Entity>, Render>) RenderManager.field_78727_a.field_78729_o);

    loading = false;
    KeyBindingRegistry.instance().uploadKeyBindingsToGame(client.field_71474_y);
  }
Beispiel #2
0
 @Override
 public void updateResourcePackList() {
   client.func_110436_a();
 }