public void func_50020_b(int par1)
    {
        if (this.text.length() != 0)
        {
            if (this.field_50048_p != this.field_50042_o)
            {
                this.func_50031_b("");
            }
            else
            {
                boolean var2 = par1 < 0;
                int var3 = var2 ? this.field_50042_o + par1 : this.field_50042_o;
                int var4 = var2 ? this.field_50042_o : this.field_50042_o + par1;
                String var5 = "";

                if (var3 >= 0)
                {
                    var5 = this.text.substring(0, var3);
                }

                if (var4 < this.text.length())
                {
                    var5 = var5 + this.text.substring(var4);
                }

                this.text = var5;

                if (var2)
                {
                    this.func_50023_d(par1);
                }
            }
        }
    }