Revert "WORKING MODEL CHANGER!"

This reverts commit 97dc3e9f13.
This commit is contained in:
KAMKEEL committed 2021-04-29 20:41:55 -04:00
1 parent 82f2323178
commit d2b5ce2880
12 files changed
+92 -81

No files matched your search

@@ -35,11 +35,8 @@ import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
public class RenderNPCInterface extends RenderLiving{
public static long LastTextureTick = 0;
private ModelBase originalModel;
public RenderNPCInterface(ModelBase model, float f){
super(model, f);
this.originalModel = model;
}
protected void renderName(EntityNPCInterface npc, double d, double d1, double d2) {
@@ -195,18 +192,6 @@ public class RenderNPCInterface extends RenderLiving{
@Override
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;
}
@@ -218,7 +203,7 @@ public class RenderNPCInterface extends RenderLiving{
}
super.doRender(entityliving, d, d1, d2, f, f1);
}
protected void renderModel(EntityLivingBase entityliving, float par2, float par3, float par4, float par5, float par6, float par7){
super.renderModel(entityliving, par2, par3, par4, par5, par6, par7);
EntityNPCInterface npc = (EntityNPCInterface) entityliving;
@@ -302,7 +287,7 @@ public class RenderNPCInterface extends RenderLiving{
}
npc.textureLocation = new ResourceLocation("skins/" + sb.toString());
// if(npc.display.squareTexture == 1){ versionModel = true; }
if(npc.display.squareTexture == 1){ versionModel = true; }
loadSkin(null, npc.textureLocation, npc.display.url, versionModel);
LastTextureTick = 0;