Jump to content

[SOLVED][1.7.10]my custom furnace is making any amount of items into only 1 item


Recommended Posts

Posted

It's caused by a typo I think!

 

From TileEntityBlastFurnace.java, lines 240 - 242:

 

if(this.furnaceItemStacks[0].stackSize >= 0){ // If the ItemStack contains zero or more items
   this.furnaceItemStacks[0] = null; // Set the ItemStack to null
}

 

Now I know you might not know where the source of any given error in your project is, but linking to your entire project kind of comes off as "Here's my project, now fix it for me!" I doubt that's the impression you intended to give, but that's the one I got. Just something to consider.

Posted

no it was because of last time i posted on here it was erroring on one file but the problem causing it was in another file xD but yeah i was looking at that line and to me i thought it was fine, but my brain is half dead right now so idk.... thanks

Posted

ok i changed it to this:

f(this.furnaceItemStacks[0].stackSize == 0){ // If the ItemStack contains zero or more items
   this.furnaceItemStacks[0] = null; // Set the ItemStack to null
}

 

and now it is working, i checked on the guy who's tutorial i was following and his is still showing what my code was, so i didn't do it wrong, so much as he game me incorrect code xD

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.