-
Notifications
You must be signed in to change notification settings - Fork 3
helmet position goes wrong when swimming #41
Comments
Screenshots? |
I have a temp fix. This issue is because that ModelSwimmingPlayer uses a constant head pitch angle instead of However, changing the head pitch to So a temporary way to fix it is adding a extending class of package xyz.kaydax.ido.legacy.model;
import net.minecraft.client.renderer.entity.RenderLivingBase;
import net.minecraft.client.renderer.entity.layers.*;
import net.minecraft.entity.EntityLivingBase;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
/**
* This is a temp fix for 'Helmet at wrong place when swimming'.
* "Patches" the LayerBipedArmor making it use the constant pitch angle.
*
* (It's called a temp fix because it's not good for compatibility)
*/
@SideOnly(Side.CLIENT)
public class SwimmingLayerBipedArmor extends LayerBipedArmor {
public SwimmingLayerBipedArmor(RenderLivingBase<?> rendererIn) {
super(rendererIn);
}
public void doRenderLayer(EntityLivingBase entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor) {
super.doRenderLayer(
entitylivingbaseIn,
limbSwing,
limbSwingAmount,
partialTicks,
ageInTicks,
netHeadYaw,
-51.42857142857143F,
scaleFactor);
}
} I'm not sure whether the author is still working on this mod or not. Maybe I could distribute the bug-fixed version by myself. |
I think at this point it's safe to make the bug-fixed version and distribute it yourself. I would be quite grateful if you made it at least available somewhere private. I'm making a 1.12.2 modpack and am in desperate need of this mod, but can't bring myself to use it until this major aesthetic bug is gone. I would manually apply the fix you provided, but I have absolutely no idea how to do that. |
I am still working on the md, but it isn't a top priority right now to work on it. I will be making a whole rewrite of the mod soon enough once I have the time to do it |
Oh, that's very good to know, I was worried the mod's been abandoned! Do you at least know if an update or the rewrite will be available this year? |
Try and see if its working now with the latest patch so I can close out this ticket |
Hey, I tested this with |
when use third person view, helmet position goes wrong when swimming.
The text was updated successfully, but these errors were encountered: