<commit_before>package me.zero.client.api.util.render.camera.defaults;

import me.zero.client.api.util.EntityUtil;
import me.zero.client.api.util.render.camera.Camera;
import me.zero.client.api.util.render.camera.CameraHandle;
import net.minecraft.util.math.Vec2f;

/**
 * An implementation of Camera that renders what is directly behind the player.
 *
 * @since 1.0
 *
 * Created by Brady on 2/4/2017.
 */
public class RearViewCamera extends Camera {

    public RearViewCamera(CameraHandle handle) {
        super(handle);
    }

    @Override
    public void updateFramebuffer() {
        EntityUtil entity = new EntityUtil(mc.player);
        Vec2f rotations = entity.getRotations();
        this.position = entity.getPos();
        this.rotation = new Vec2f(rotations.x + 180, rotations.y * -1);
        super.updateFramebuffer();
    }
}<commit_msg>Fixed error with the Rear-View Camera<commit_after>package me.zero.client.api.util.render.camera.defaults;

import me.zero.client.api.util.EntityUtil;
import me.zero.client.api.util.render.camera.Camera;
import me.zero.client.api.util.render.camera.CameraHandle;
import net.minecraft.util.math.Vec2f;

/**
 * An implementation of Camera that renders what is directly behind the player.
 *
 * @since 1.0
 *
 * Created by Brady on 2/4/2017.
 */
public class RearViewCamera extends Camera {

    public RearViewCamera(CameraHandle handle) {
        super(handle);
    }

    @Override
    public void updateFramebuffer(float partialTicks) {
        EntityUtil entity = new EntityUtil(mc.player);
        Vec2f rotations = entity.getRotations();
        this.position = entity.getPos();
        this.rotation = new Vec2f(rotations.x + 180, rotations.y * -1);
        super.updateFramebuffer(partialTicks);
    }
}
{'fraction_non_alphanumeric': 0.11281179138321995, 'fraction_numerical': 0.017006802721088437, 'mean_word_length': 3.325980392156863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6990802', 'n_tokens_mistral': 558, 'n_tokens_neox': 530, 'n_words': 122}