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

Fire value is not correctly set in some situations resulting in entities standing in fire but not being on fire

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.11.2
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      The Fire tag works in a way that negative values mean an entity is not on fire and positive numbers mean an entity is on fire. 0 is kind of special because when the fire value increase from -1 to 0 the entity is "really" set
      on fire for 8 seconds.
      For players the default value is -20 acting as 19 ticks of buffer before actually catching fire, for all other entities it is -1 meaning there is no buffer.

      The problem is that in some situations the fire value is reset by setting it to 0 instead of the correct default value. This results in situations where a mob or player is standing in fire but not actually catching fire.

      How to reproduce

      1. Build a setup as shown in Setup.png
      2. Place a cow inside the free space and make sure it is in the water
      3. Set the log block, on the side the cow is at, on fire
      4. Remove the water before the cow is dead
        → You will see that the cow is not catching fire and does not drop cooked beef

      Affected methods

      These are the methods which reset the fire value not correctly.
      Last updated for 1.11.2 (MCP 9.35 rc-1)

      • net.minecraft.entity.Entity.extinguish()
      • net.minecraft.entity.Entity.setFire(int)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: