From c95905ebf9832b3ad13246844812818b39aad716 Mon Sep 17 00:00:00 2001 From: KAMKEEL Date: Thu, 29 Apr 2021 21:36:00 -0400 Subject: [PATCH] Sad :( Model Switcher The model switcher sort of works, but some reason the renderer syncs up with all the entities. Need to make them all separate some how. --- .../java/noppes/npcs/client/gui/model/GuiCreationScreen.java | 2 +- .../java/noppes/npcs/client/gui/model/GuiEntitySelection.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/noppes/npcs/client/gui/model/GuiCreationScreen.java b/src/main/java/noppes/npcs/client/gui/model/GuiCreationScreen.java index a99288102..5a9db8824 100644 --- a/src/main/java/noppes/npcs/client/gui/model/GuiCreationScreen.java +++ b/src/main/java/noppes/npcs/client/gui/model/GuiCreationScreen.java @@ -253,7 +253,7 @@ public class GuiCreationScreen extends GuiModelInterface implements ICustomScrol } if(button.id == 1){ - this.mc.displayGuiScreen(new GuiEntitySelection(this, playerdata,npc)); + this.mc.displayGuiScreen(new GuiEntitySelection(this, playerdata, npc)); } if(button.id == 4){ diff --git a/src/main/java/noppes/npcs/client/gui/model/GuiEntitySelection.java b/src/main/java/noppes/npcs/client/gui/model/GuiEntitySelection.java index d2788cc1d..727cd19ba 100644 --- a/src/main/java/noppes/npcs/client/gui/model/GuiEntitySelection.java +++ b/src/main/java/noppes/npcs/client/gui/model/GuiEntitySelection.java @@ -120,9 +120,9 @@ public class GuiEntitySelection extends GuiNPCInterface playerdata.setEntityClass(parent.data.get(slot.selected)); EntityLivingBase entity = playerdata.getEntity(npc); if(entity != null){ + npc.display.modelType = 0; RendererLivingEntity render = (RendererLivingEntity) RenderManager.instance.getEntityRenderObject(entity); npc.display.texture = NPCRendererHelper.getTexture(render,entity); - npc.display.modelType = 0; } else{ npc.display.texture = "customnpcs:textures/entity/humanmale/Steve.png";