Merge pull request #15 from Silent-Client/TEST2

Update AbstractShieldRenderer.java
This commit is contained in:
kirillsaint 2023-08-03 12:43:33 +06:00 committed by GitHub
commit d987768640
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ public class AbstractShieldRenderer extends ModelBase implements LayerRenderer<A
}
public double getShieldScale(String model) {
if(model.equals("roundshield") || model.equals("hexagon_shield") || model.equals("shield_dollar")) {
if(model.equals("roundshield") || model.equals("hexagon_shield") || model.equals("shield_dollar") || model.equals("zzv4shield2")) {
return 0.100;
}
return 0.007;
@ -71,7 +71,6 @@ public class AbstractShieldRenderer extends ModelBase implements LayerRenderer<A
private void applyArmTransformations(String model, boolean paramBoolean1, boolean paramBoolean2, boolean chestplate) {
switch(model) {
case "shield":
case "zzv4shield2":
GlStateManager.translate(0.33, 0.45, 0.38);
BlcGlStateManager.b(180.0f, 0.0f, 1.0f, 1.0f);
BlcGlStateManager.b(-90.0f, 1.0f, 0.0f, 0.0f);
@ -82,6 +81,7 @@ public class AbstractShieldRenderer extends ModelBase implements LayerRenderer<A
}
break;
case "roundshield":
case "zzv4shield2":
GlStateManager.translate(0.33, 0.35, 0);
BlcGlStateManager.b(-90.0F, 0.0F, 1.0F, 0.0F);
BlcGlStateManager.b(paramBoolean1 ? -0.10000000149011612D : 0.0D, paramBoolean1 ? 0.45D : 0.25D, paramBoolean2 ? -0.1399999964237213D : -0.2D);