<commit_before>package net.darkhax.bookshelf.tileentity;

import net.darkhax.bookshelf.lib.Constants;
import net.minecraft.util.ITickable;

public class TileEntityBasicTickable extends TileEntityBasic implements ITickable {
    
    @Override
    public void update () {
        
        if (this.isInvalid() || !this.getWorld().isBlockLoaded(this.getPos()) || this.getWorld().isRemote)
            return;
        
        try {
            
            this.onEntityUpdate();
        }
        
        catch (final Exception exception) {
            
            Constants.LOG.warn("A TileEntity at %s in world %s failed a client update tick!", this.getPos(), this.getWorld().getWorldInfo().getWorldName());
            exception.printStackTrace();
        }
    }
    
    /**
     * Handles the TileEntity update ticks. This method will only be called in a safe
     * environment.
     */
    public void onEntityUpdate () {
        
    }
}<commit_msg>Modified the error for invalid ticking TEs.<commit_after>package net.darkhax.bookshelf.tileentity;

import net.darkhax.bookshelf.lib.Constants;
import net.minecraft.util.ITickable;

public class TileEntityBasicTickable extends TileEntityBasic implements ITickable {
    
    @Override
    public void update () {
        
        if (this.isInvalid() || !this.getWorld().isBlockLoaded(this.getPos()) || this.getWorld().isRemote)
            return;
        
        try {
            
            this.onEntityUpdate();
        }
        
        catch (final Exception exception) {
            
            Constants.LOG.warn("A TileEntity at %s in world %s failed a client update tick!", this.getPos().toString(), this.getWorld().getWorldInfo().getWorldName());
            exception.printStackTrace();
        }
    }
    
    /**
     * Handles the TileEntity update ticks. This method will only be called in a safe
     * environment.
     */
    public void onEntityUpdate () {
        
    }
}
{'fraction_non_alphanumeric': 0.10209290454313426, 'fraction_numerical': 0.0, 'mean_word_length': 2.146067415730337, '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': '5713566', 'n_tokens_mistral': 539, 'n_tokens_neox': 531, 'n_words': 128}