URLs on Cloaks

This commit is contained in:
Kam committed 2023-11-15 22:55:15 -05:00
1 parent 64a70fb1bb
commit 3f534ee004
7 files changed
+8 -10

No files matched your search

@@ -934,10 +934,15 @@ public class ModelMPM extends ModelNPCMale{
public void renderCloak(EntityCustomNpc npc, float f){
if (!npc.display.cloakTexture.isEmpty() && !isArmor)
{
if(npc.textureCloakLocation == null){
npc.textureCloakLocation = new ResourceLocation(npc.display.cloakTexture);
ImageData imageData = ClientCacheHandler.getImageData(npc.display.cloakTexture);
if (!imageData.imageLoaded())
return;
try {
imageData.bindTexture();
} catch (Exception e) { return;
}
bindTexture((ResourceLocation) npc.textureCloakLocation);
GL11.glPushMatrix();
GL11.glTranslatef(0.0F, 0.0F, 0.125F);
double d = (npc.field_20066_r + (npc.field_20063_u - npc.field_20066_r) * (double)f) - (npc.prevPosX + (npc.posX - npc.prevPosX) * (double)f);