mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 21:17:32 +00:00
Fixed first person animations not rendering correctly when rotating the model about the Y axis
This commit is contained in:
1 parent
fd3a9cc4bc
commit
c24a900f18
1 file changed
+9
-1
@@ -122,8 +122,16 @@ public abstract class MixinItemRenderer {
|
||||
float f4 = entityplayersp.prevRenderArmYaw + (entityplayersp.renderArmYaw - entityplayersp.prevRenderArmYaw) * partialRenderTick;
|
||||
GL11.glRotatef((entityclientplayermp.rotationPitch - f3) * 0.1F, 1.0F, 0.0F, 0.0F);
|
||||
GL11.glRotatef((entityclientplayermp.rotationYaw - f4) * 0.1F, 0.0F, 1.0F, 0.0F);
|
||||
ItemStack itemstack = itemRenderer.itemToRender;
|
||||
|
||||
if (animData != null && animData.isActive()) {
|
||||
if (frame.frameParts.containsKey(EnumAnimationPart.FULL_MODEL)) {
|
||||
FramePart part = frame.frameParts.get(EnumAnimationPart.FULL_MODEL);
|
||||
float pi = 180 / (float) Math.PI;
|
||||
GL11.glRotatef(-part.prevRotations[1] * pi, 0, 1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
ItemStack itemstack = itemRenderer.itemToRender;
|
||||
int i = Minecraft.getMinecraft().theWorld.getLightBrightnessForSkyBlocks(MathHelper.floor_double(entityclientplayermp.posX), MathHelper.floor_double(entityclientplayermp.posY), MathHelper.floor_double(entityclientplayermp.posZ), 0);
|
||||
int j = i % 65536;
|
||||
int k = i / 65536;
|
||||
|
||||
Reference in new issue
Block a user