mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 19:42:19 +00:00
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:
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";
|
||||
|
||||
Reference in new issue
Block a user