mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Fixed gem render location not matching its actual location
This commit is contained in:
parent
6a17f1dd1c
commit
c3eb588f3c
1 changed files with 3 additions and 1 deletions
|
@ -75,8 +75,10 @@ public class ModelGem extends ModelBase {
|
||||||
|
|
||||||
EntitySpell spell = (EntitySpell)entity;
|
EntitySpell spell = (EntitySpell)entity;
|
||||||
|
|
||||||
|
float eyes = entity.getEyeHeight();
|
||||||
|
|
||||||
float floatOffset = MathHelper.sin((spell.ticksExisted + stutter) / 10 + spell.hoverStart) / 10 + 0.1F;
|
float floatOffset = MathHelper.sin((spell.ticksExisted + stutter) / 10 + spell.hoverStart) / 10 + 0.1F;
|
||||||
GlStateManager.translate(0, floatOffset - entity.getEyeHeight(), 0);
|
GlStateManager.translate(0, floatOffset - (eyes > 0.25F ? eyes : 0), 0);
|
||||||
|
|
||||||
floatOffset = (spell.ticksExisted + stutter) / 20;
|
floatOffset = (spell.ticksExisted + stutter) / 20;
|
||||||
if (spell.getCurrentLevel() > 0) {
|
if (spell.getCurrentLevel() > 0) {
|
||||||
|
|
Loading…
Reference in a new issue