Jump to content

Editing mc classes without conflict


DarkGuardsman

Recommended Posts

For my mod comeCloser i edit RenderPlayer class in order to change a few lines of code to make seeing a player's name tag harder. This works find if my mod is the only one doing so but if another mod editing this file is installed both mods fail to work. So what i'm asking is there a way i can change those lines without editing the file? I've heard there is a way but have no clue what it is or how to do it. 

Link to comment
Share on other sites

not sure if i can use that but i'll toy with the ideal

Here is the code section i want to edit

   protected void renderName(EntityPlayer par1EntityPlayer, double par2, double par4, double par6)
    {
        if (Minecraft.isGuiEnabled() && par1EntityPlayer != this.renderManager.livingPlayer)
        {
            float var8 = 1.6F;
            float var9 = 0.016666668F * var8;
            double var10 = par1EntityPlayer.getDistanceSqToEntity(this.renderManager.livingPlayer);
            float var12 = par1EntityPlayer.isSneaking() ? 32.0F : 64.0F;

            if (var10 < (double)(var12 * var12))
            {
Cut.................................Cut

var12 is what i want changed to my own numbers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.