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.
This commit is contained in:
KAMKEEL committed 2021-04-29 21:36:00 -04:00
1 parent 6b832e8af1
commit c95905ebf9
2 files changed
+2 -2

No files matched your search

@@ -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){
@@ -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";