Fix compile error

This commit is contained in:
Sollace 2019-03-25 18:20:55 +02:00
parent 3c0e7e6047
commit 0cc76ce574

View file

@ -119,7 +119,7 @@ public class LevitatingItemRenderer {
boolean doNormal = entity.getItemInUseCount() <= 0 || action == EnumAction.NONE;
if (doNormal) { // eating, blocking, and drinking are not transformed. Only held items.
float ticks = MineLPClient.getInstance().getModUtilities().getGameTimer().elapsedPartialTicks - entity.ticksExisted;
float ticks = MineLPClient.getInstance().getModUtilities().getRenderPartialTicks() - entity.ticksExisted;
float floatAmount = (float)Math.sin(ticks / 9) / 40;
float driftAmount = (float)Math.cos(ticks / 6) / 40;