Jump to content

Recommended Posts

Posted (edited)

Hey guys,

 

I don't know what I did, but after upgrading my mod to 1.12.2 from 1.12, many things seem to have broken. Here's my steps:

  1. I updated my build.gradle file (you can see it below)
  2. I ran gradlew clean
  3. Ran gradlew setupDecompWorkspace
  4. Ran gradlew eclipse
  Reveal hidden contents

Now things are broken.

 

Whenever I run my mod from eclipse, it keeps telling me that every single one of my items are being registered twice

  Reveal hidden contents

If I run gradlew build, it tells me that there a variable that I can clearly see doesn't exist:

  Reveal hidden contents

As far as I know I didn't change anything significant between upgrading from 1.12.2 from 1.12. I can post more code, or a link to my github if needed.

 

Your help is appreciated.

Edited by DragonFerocity
Posted
  On 10/6/2017 at 3:58 AM, MDW01 said:

I would try removing all the eclipse files and reimporting the project.

Expand  

Are there eclipse files in the src directory? I couldn't see any.

 

One thing I did try was creating a new project from scratch using forge, then I edited the build.gradle file with the correct info and copied my src folder over to the new project. The same thing occured.

Posted

That says your blocks are being registered twice, not your items.

 

If you look at the end of the initBlocks method:

for(Block block : blockList) {
   event.getRegistry().register(block);
}
for(Block block : blockList) {
   event.getRegistry().register(block);
}

That's why right there, you do that loop twice.

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.