| Type: | Bug | ||
| Reporter: | Dimitriye Danilovic | Assignee: | [Mojang] SHugoh |
| Resolution: | Fixed | Votes: | 40 |
| Labels: | furnace, rendering, smelting | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Category: |
Networking
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mojang Priority: | Normal | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Area: | Platform | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
The bugWhen you start a furnace burning and then swap out what's in the fuel slot and save and quit, the next time you load the burn time indicator will glitch. The reason for this is that the NBT file for furnaces does not store the max fuel burn time and instead dynamically gets it from the fuel slot, which may no longer contain the same item as was used to initially fuel the furnace. This can be seen in the code snippet attached. To reproduce
With particularly large differences (lava bucket to stick), the progress bar may wrap around the top of the screen and display twice (see 2016-09-19_14.59.18.png FixRather than attempting to guess the total burn time of the original item, it should be saved too: TileEntityFurnace public void readFromNBT(NBTTagCompound compound) { super.readFromNBT(compound); this.furnaceItemStacks = NonNullList.<ItemStack>withSize(this.getSizeInventory(), ItemStack.EMPTY); ItemStackHelper.loadAllItems(compound, this.furnaceItemStacks); this.furnaceBurnTime = compound.getShort("BurnTime"); this.cookTime = compound.getShort("CookTime"); this.totalCookTime = compound.getShort("CookTimeTotal"); //this.currentItemBurnTime = getItemBurnTime(this.furnaceItemStacks.get(1)); this.currentItemBurnTime = compound.getShort("BurnTimeTotal"); // added if (compound.hasKey("CustomName", 8)) { this.furnaceCustomName = compound.getString("CustomName"); } } public NBTTagCompound writeToNBT(NBTTagCompound compound) { super.writeToNBT(compound); compound.setShort("BurnTime", (short)this.furnaceBurnTime); compound.setShort("CookTime", (short)this.cookTime); compound.setShort("CookTimeTotal", (short)this.totalCookTime); compound.setShort("BurnTimeTotal", (short)this.currentItemBurnTime); // added ItemStackHelper.saveAllItems(compound, this.furnaceItemStacks); if (this.hasCustomName()) { compound.setString("CustomName", this.furnaceCustomName); } return compound; } |
| Comments |
| Comment by [Mod] j_p_smith [ 10/Aug/23 ] |
|
The broken GUI is fixed in 23w32a, but the burn time indicator is still incorrect. |
| Comment by [Mod] Avoma [ 14/Sep/22 ] |
|
Can confirm in 1.19.2. |
| Comment by Brevort [ 30/May/21 ] |
|
Never mind, that's MC-137146. |
| Comment by Sourrazz [ 07/Nov/20 ] |
|
Confirmed for 1.16.4 |
| Comment by pulpetti [ 17/Jul/20 ] |
|
Can confirm for 20w29a |
| Comment by Iosiv Visokogorskiy [ 24/Jun/20 ] |
|
Can confirm for 1.16.1 |
| Comment by guenstig [ 16/Jul/19 ] |
|
confirmed for 1.14.3, happens also with lava bucket without intentional switching out of fuel item since full bucket changes to empty bucket |
| Comment by Kraif [ 25/Aug/18 ] |
|
Confirmed for 1.13.1. |
| Comment by A man [ 29/Jul/16 ] |
|
Confirmed for 1.10.2 Also relating to |
| Comment by user-f2760 (Inactive) [ 17/Mar/16 ] |
|
No response for over a year. |
| Comment by Galaxy_2Alex [ 25/Oct/14 ] |
|
Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 / Launcher version 1.5.3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by Pierre Waldén [ 21/Jul/14 ] |
|
I can confirm this on 1.7.10 |
| Comment by fienxjox [ 24/Jan/14 ] |
|
Galaxy_2Alex - I don't see the 14w03b as released as of right this moment, just the tweet that it is coming "sometime today" EDIT: and 3 minutes later, there it is.... |
| Comment by YuzzzzuY [ 24/Jan/14 ] |
|
I can confirm this for version 14w04a |
| Comment by Jasmine Li [ 08/Sep/13 ] |
|
This still happens in 1.6.2, and the 1.7 snapshots. |
| Comment by Kumasasa [ 29/Jun/13 ] |
|
Confirmed for 1.6.1 and block of coal |
| Comment by kbk [ 03/May/13 ] |
|
Can confirm in 1.5.2 using lava buckets. Apparently, empty bucket or its removal is being treated as if you were swapping the fuel. |
| Comment by Carl Lystad [ 26/Feb/13 ] |
|
The fuel source does not need to be swapped, either. Simply unloading the chunk and loading it again is enough to trigger the glitch. I first noticed it when I used lava buckets to start a bunch of furnaces and went to the Nether to refill the buckets. When I came back, this glitch had appeared. |
| Comment by Tails [ 21/Feb/13 ] |
|
Confirmed in 13w07a. Just a visuall glitch with the burn time indicator, the burning process is correctly finished after smelting the amount of items according to the fuel type. |
| Comment by Dean Baset [ 21/Feb/13 ] |
|
Unable to reproduce. Please provide a step by step list on how to reproduce. ie: |