remove useless wield type

This commit is contained in:
Sen 2025-07-18 00:15:11 +02:00
parent 33b6333683
commit 4b313dd869
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
2 changed files with 3 additions and 10 deletions

View file

@ -224,15 +224,8 @@ public class RenderItem
GL11.glPushMatrix();
if(transform) {
WieldType type = stack.getItem().getWieldType();
if(type == null)
type = WieldType.DEFAULT;
if(third) {
if(third && type != null) {
switch(type) {
case DEFAULT:
GL11.glTranslatef(0.0f, 0.0625f, -3.0f * 0.0625f);
GL11.glRotatef(-90.0f, 1.0F, 0.0F, 0.0F);
GL11.glScalef(0.55f, 0.55f, 0.55f);
break;
case TOOL_FLIP:
GL11.glTranslatef(0.0f, 0.0f, -3.5f * 0.0625f);
GL11.glRotatef(90.0f, 0.0F, 1.0F, 0.0F);
@ -254,7 +247,7 @@ public class RenderItem
break;
}
}
else {
else if(!third) {
GL11.glTranslatef(0.0f, 4.0f * 0.0625f, 2.0f * 0.0625f);
GL11.glRotatef(type == WieldType.TOOL_FLIP ? 45.0f : -135.0f, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(25.0f, 0.0F, 0.0F, 1.0F);