<commit_before>package org.egordorichev.lasttry.player;

import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import org.egordorichev.lasttry.Globals;
import org.egordorichev.lasttry.entity.components.*;
import org.egordorichev.lasttry.player.skin.*;
import org.egordorichev.lasttry.graphics.AnimationFrame;
import org.egordorichev.lasttry.inventory.ItemHolder;

import java.util.Random;

public class PlayerGraphicsComponent extends CreatureGraphicsComponent {
	private TextureRegion texture;

	public PlayerGraphicsComponent() {
		PlayerRenderInfo info = new PlayerRenderInfo(1, Color.GREEN, Color.GREEN, Color.GREEN, 1, true); // TODO: replace it
		this.texture = PlayerRenderer.generateTextureRegion(info);
		this.setupAnimations();
	}

	@Override
	public void render() {
		Random random = null;
	random.toString();

		ItemHolder holder = Globals.getPlayer().getInventory().getActiveItem();<commit_msg>Forgot to remove NPE cause<commit_after>package org.egordorichev.lasttry.player;

import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import org.egordorichev.lasttry.Globals;
import org.egordorichev.lasttry.entity.components.*;
import org.egordorichev.lasttry.player.skin.*;
import org.egordorichev.lasttry.graphics.AnimationFrame;
import org.egordorichev.lasttry.inventory.ItemHolder;

import java.util.Random;

public class PlayerGraphicsComponent extends CreatureGraphicsComponent {
	private TextureRegion texture;

	public PlayerGraphicsComponent() {
		PlayerRenderInfo info = new PlayerRenderInfo(1, Color.GREEN, Color.GREEN, Color.GREEN, 1, true); // TODO: replace it
		this.texture = PlayerRenderer.generateTextureRegion(info);
		this.setupAnimations();
	}

	@Override
	public void render() {
		ItemHolder holder = Globals.getPlayer().getInventory().getActiveItem();
{'fraction_non_alphanumeric': 0.1054897739504844, 'fraction_numerical': 0.0032292787944025836, 'mean_word_length': 6.233463035019455, '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': '6346954', 'n_tokens_mistral': 597, 'n_tokens_neox': 563, 'n_words': 107}