Permalink
Browse files

Fixed the stun baton inventory rendering placement.

  • Loading branch information...
Ri5ux committed Oct 22, 2017
1 parent 944d6f9 commit 232acb4aa2816b24253baa4e11c592fa6cef9b99
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/main/java/org/avp/client/render/items/RenderItemStunBaton.java
@@ -47,12 +47,11 @@ public void renderFirstPersonRight(ItemStack itemstack, EntityLivingBase entity,
@Override
public void renderInInventory(ItemStack itemstack, EntityLivingBase entity, TransformType cameraTransformType)
{
float glScale = 0.75F;
float glScale = 1.3F;
OpenGL.scale(glScale, glScale, glScale);
OpenGL.translate(0.7F, 0.5F, 0F);
OpenGL.rotate(230F, 1F, 0F, 0F);
OpenGL.translate(-0.1F, -0.1F, 0F);
OpenGL.rotate(180F, 1F, 0F, 0F);
OpenGL.rotate(45F, 0F, 0F, 1F);
OpenGL.rotate(90F, 0.0F, 1.0F, 0.0F);
this.getModel().draw();
AliensVsPredator.resources().models().STUNBATON.draw();
}

0 comments on commit 232acb4

Please sign in to comment.