remove useless wield type
This commit is contained in:
parent
33b6333683
commit
4b313dd869
2 changed files with 3 additions and 10 deletions
|
@ -224,15 +224,8 @@ public class RenderItem
|
||||||
GL11.glPushMatrix();
|
GL11.glPushMatrix();
|
||||||
if(transform) {
|
if(transform) {
|
||||||
WieldType type = stack.getItem().getWieldType();
|
WieldType type = stack.getItem().getWieldType();
|
||||||
if(type == null)
|
if(third && type != null) {
|
||||||
type = WieldType.DEFAULT;
|
|
||||||
if(third) {
|
|
||||||
switch(type) {
|
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:
|
case TOOL_FLIP:
|
||||||
GL11.glTranslatef(0.0f, 0.0f, -3.5f * 0.0625f);
|
GL11.glTranslatef(0.0f, 0.0f, -3.5f * 0.0625f);
|
||||||
GL11.glRotatef(90.0f, 0.0F, 1.0F, 0.0F);
|
GL11.glRotatef(90.0f, 0.0F, 1.0F, 0.0F);
|
||||||
|
@ -254,7 +247,7 @@ public class RenderItem
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if(!third) {
|
||||||
GL11.glTranslatef(0.0f, 4.0f * 0.0625f, 2.0f * 0.0625f);
|
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(type == WieldType.TOOL_FLIP ? 45.0f : -135.0f, 0.0F, 1.0F, 0.0F);
|
||||||
GL11.glRotatef(25.0f, 0.0F, 0.0F, 1.0F);
|
GL11.glRotatef(25.0f, 0.0F, 0.0F, 1.0F);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
package common.item;
|
package common.item;
|
||||||
|
|
||||||
public enum WieldType {
|
public enum WieldType {
|
||||||
DEFAULT, TOOL, TOOL_FLIP, RANGED;
|
TOOL, TOOL_FLIP, RANGED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue