mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 00:39:40 +00:00
4th Version of Model Switcher
Moved code to interiror to check if entity selected was a CustomNPC and not another model.
This commit is contained in:
1 parent
c95905ebf9
commit
8f040b7501
2 files changed
+20
-12
No files matched your search
@@ -36,7 +36,7 @@ import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
|
||||
public class RenderNPCInterface extends RenderLiving{
|
||||
public static long LastTextureTick = 0;
|
||||
|
||||
private ModelBase originalModel;
|
||||
public ModelBase originalModel;
|
||||
|
||||
public RenderNPCInterface(ModelBase model, float f){
|
||||
super(model, f);
|
||||
@@ -197,17 +197,6 @@ public class RenderNPCInterface extends RenderLiving{
|
||||
public void doRender(EntityLiving entityliving, double d, double d1, double d2, float f, float f1){
|
||||
EntityNPCInterface npc = (EntityNPCInterface) entityliving;
|
||||
|
||||
int modelVal = npc.display.modelType;
|
||||
if(modelVal == 0){
|
||||
this.mainModel = this.originalModel;
|
||||
}
|
||||
else if(modelVal == 1){
|
||||
this.mainModel = new ModelMPM(0, false);
|
||||
}
|
||||
else{
|
||||
this.mainModel = new ModelMPM(0, true);
|
||||
}
|
||||
|
||||
if(npc.isKilled() && npc.stats.hideKilledBody && npc.deathTime > 20){
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user