From 0bbe529775fedd9b561a3abf25db288acf49c0f6 Mon Sep 17 00:00:00 2001 From: Lain MultipleInstances Date: Thu, 11 Feb 2016 13:06:45 +0800 Subject: [PATCH] patch the texture size of the modelrenderer this should resolve the issue with capes --- build.gradle | 2 +- src/main/java/lain/mods/skinport/SkinPortModelPlayer.java | 4 ++++ .../lain/mods/skinport/compat/SkinPortModelPlayer_RPA.java | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 5e04121..b001593 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ buildscript { apply plugin: 'forge' -version = "1.7.10-v7" +version = "1.7.10-v7a" group= "lain.mods.skinport" archivesBaseName = "SkinPort" diff --git a/src/main/java/lain/mods/skinport/SkinPortModelPlayer.java b/src/main/java/lain/mods/skinport/SkinPortModelPlayer.java index a9b8721..35ad850 100644 --- a/src/main/java/lain/mods/skinport/SkinPortModelPlayer.java +++ b/src/main/java/lain/mods/skinport/SkinPortModelPlayer.java @@ -23,6 +23,10 @@ public SkinPortModelPlayer(float z, boolean smallArms) this.smallArms = smallArms; + bipedCloak = new ModelRenderer(this, 0, 0); + bipedCloak.setTextureSize(64, 32); + bipedCloak.addBox(-5.0F, 0.0F, -1.0F, 10, 16, 1, z); + if (smallArms) { bipedLeftArm = new ModelRenderer(this, 32, 48); diff --git a/src/main/java/lain/mods/skinport/compat/SkinPortModelPlayer_RPA.java b/src/main/java/lain/mods/skinport/compat/SkinPortModelPlayer_RPA.java index 9d94d3d..9d6d1b9 100644 --- a/src/main/java/lain/mods/skinport/compat/SkinPortModelPlayer_RPA.java +++ b/src/main/java/lain/mods/skinport/compat/SkinPortModelPlayer_RPA.java @@ -20,6 +20,10 @@ public SkinPortModelPlayer_RPA(float z, boolean smallArms) this.smallArms = smallArms; + bipedCloak = new ModelRenderer(this, 0, 0); + bipedCloak.setTextureSize(64, 32); + bipedCloak.addBox(-5.0F, 0.0F, -1.0F, 10, 16, 1, z); + if (smallArms) { bipedLeftArm = new ModelRenderer(this, 32, 48);