Skip to content

Commit

Permalink
fix #47
Browse files Browse the repository at this point in the history
  • Loading branch information
zPeanut committed Jan 31, 2022
1 parent a1d8bce commit c65d512
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package me.peanut.hydrogen.injection.mixins.entity;

import com.mojang.authlib.GameProfile;
import me.peanut.hydrogen.Hydrogen;
import me.peanut.hydrogen.module.modules.render.Animations;
import me.peanut.hydrogen.utils.PlayerUtil;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.PlayerCapabilities;
Expand Down Expand Up @@ -58,7 +60,9 @@ public float getEyeHeight() {
f -= 0.08F;
}

f = PlayerUtil.getCustomEyeHeight((EntityPlayer) (Object) this);
if(Hydrogen.getClient().moduleManager.getModule(Animations.class).isEnabled()) {
f = PlayerUtil.getCustomEyeHeight((EntityPlayer) (Object) this);
}

return f;
}
Expand Down

0 comments on commit c65d512

Please sign in to comment.