Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-80938

Non-default BurnTime, CookTime and CookTimeTotal values of furnace can cause GUI to be displayed incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w32a
    • Minecraft 1.8.6, Minecraft 1.10.2, Minecraft 16w32b, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39b, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16b, Minecraft 17w17b, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12.2, Minecraft 18w02a, Minecraft 18w06a, Minecraft 18w09a, Minecraft 18w15a, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, 1.14.4, 1.15 Pre-release 6, 1.15.2, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w28a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w46a, 20w48a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 1.17 Pre-release 2, 1.17 Pre-release 4
    • Confirmed
    • UI
    • Low
    • Platform

      The bug

      When setting a furnace to have a CookTime of 1s, a CookTimeTotal of 1s, any variable of BurnTime greater than 1, and any smeltable item in slot 0b, then its GUI texture extends further than it should over to the right.

      /setblock ~ ~ ~ furnace{CookTimeTotal:1,BurnTime:999,CookTime:1,Items:[{id:oak_log,Count:1}]}
      

      Code analysis

      Based on 1.10 decompiled using MCP 9.30

      The problem is that the method net.minecraft.client.gui.inventory.GuiFurnace.drawGuiContainerBackgroundLayer(float, int, int) does not test if the calculated values "make sense". Because of this it uses an invalid width for a non-default CookTime CookTimeTotal ratio. This affects the BurnTime as well, but there you would have to change textures/gui/container/furnace.png to see it because the maximum height you could achieve is not enough to have the fire texture be repeated.

            Unassigned Unassigned
            Evtema3 Evtema3
            Votes:
            12 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: