Jump to content

GameRegistry.getFuelValue always returns 0 1.6.2


TrenTech

Recommended Posts

Working on a custom furnace. Been sifting through my code for hours thinking I've done something wrong. After I tracked down this issue this is where it was located:

 

	public static int getItemBurnTime(ItemStack itemstack){
                System.out.println(itemstack.toString();
	if(itemstack == null){
		return 0;
	}else{
		Item item = itemstack.getItem();
		System.out.println(GameRegistry.getFuelValue(itemstack));
		return GameRegistry.getFuelValue(itemstack);
	}
}

 

Now looking where I posted the println statements I know itemstack is not null and also know it's the correct itemstack by the console output. Doesn't matter What I through in the furnace, coal, wood etc still returns 0. Is this a bug or am I missing something?

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.