Interpolate sky-chest lid angle (like vanilla does)

for smoother opening and closing.
This commit is contained in:
Sebastian Hartte
2020-06-14 00:52:36 +02:00
parent a620245bbe
commit 3989dbd860
@@ -186,9 +186,8 @@ public class TileSkyChest extends AEBaseInvTile implements ITickableTileEntity,
} }
@Override @Override
public float getLidAngle(float v) { public float getLidAngle(float partialTicks) {
// FIXME: Do it nicely as the chest does it (interpolation, baby!) return MathHelper.lerp(partialTicks, this.prevLidAngle, this.lidAngle);
return lidAngle;
} }
} }