Jump to content

[1.7.10] Cannot compile


jordsta95

Recommended Posts

Hey there, I am getting this message when failing to compile: http://puu.sh/i2PEH.png

 

Only issue is, those lines of code are needed, and do do things... How can I stop Forge from saying it is deprecated? Everything works as it should in the dev environment. I can delete those lines of code and the mod loads... however, it doesn't do what it should (fill the Blood Altar)

Why bother?

Link to comment
Share on other sites

Thats not deprecated, those are missing, you need to call existing methods.

I would understand that if it didn't not work when the lines:

        altarEntity.sacrificialDaggerCall(amount, false);

        altarEntity.startCycle();

 

were removed from:

    public void findAndFillAltar(World world, EntityPlayer player, int amount)

    {

        int posX = (int) Math.round(player.posX - 0.5f);

        int posY = (int) player.posY;

        int posZ = (int) Math.round(player.posZ - 0.5f);

        IBloodAltar altarEntity = getAltar(world, posX, posY, posZ);

 

        if (altarEntity == null)

        {

            return;

        }

 

        altarEntity.sacrificialDaggerCall(amount, false);

        altarEntity.startCycle();

    }

 

But seeing as when those 2 lines get removed I can compile, but the item doesn't fill the altar, it makes me wonder

Why bother?

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.



×
×
  • Create New...

Important Information

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