• 0

    posted a message on Rendering player on MainMenu

    Alright so, now I changed some code to avoid null pointers but no entity is displayed, any idea? :/

    Posted in: Modification Development
  • 0

    posted a message on Rendering player on MainMenu

    So, I was trying to add the character to the main menu, but there are some problems with this:

    • At GuiMainMenu when callingthis.mc.playerController.createPlayer a NullPointerException is thrown (trying to fix copying from [email protected])
    • (I managed to fix other problems while writing)

    Currently I am using this code:

    FakeNetHandlerPlayClient fakeServer = new FakeNetHandlerPlayClient(mc);
    FakeWorld world = new FakeWorld(new WorldSettings(new WorldInfo()), fakeServer); this.mc.player = this.mc.playerController.createPlayer(world, new StatisticsManager(), new RecipeBook()); 
    this.mc.player.respawnPlayer(); 
    drawEntityOnScreen(posX, posY, scale, mouseX, mouseY, this.mc.player);



    FakeWorld and FakeNetHandlerPlayClient were copied from this repository:
    https://github.com/bschoenmaeckers/MenuMobs/

    Posted in: Modification Development
  • To post a comment, please .