mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 22:44:23 +00:00
Reimplement the changes to the entity rendering in the custom renderers so their animations n stuff isn't b0rked anymore. (todo: do properly later)
This commit is contained in:
1 parent
28f16ac76c
commit
17593a3909
5 files changed
+20
-3
No files matched your search
@@ -15,6 +15,9 @@ public class ThrowingKnifeRenderer extends AmmoItemRenderer {
|
||||
|
||||
@Override
|
||||
protected void specialAnimation(ItemRenderType type, ItemStack item) {
|
||||
GL11.glTranslatef(0.5f, 0.5f, 0);
|
||||
GL11.glScalef(0.5f, 0.5f, 0.5f);
|
||||
|
||||
float progress = ((IWindup)item.getItem()).getWindupProgress(item, mc.thePlayer);
|
||||
|
||||
if(type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
|
||||
@@ -65,5 +68,7 @@ public class ThrowingKnifeRenderer extends AmmoItemRenderer {
|
||||
if(type == ItemRenderType.EQUIPPED)
|
||||
GL11.glRotatef(-180, 0, 0, 1);
|
||||
|
||||
|
||||
GL11.glTranslatef(-0.5f, -0.5f, 0f);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user