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

Entities don't catch on fire when inside lava fluid states

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • Minecraft 1.14.1, Minecraft 1.14.2
    • None
    • Unconfirmed
    • Block states

      This is caused by checking if the block is lava, rather than if the fluid state is lava in World.isFlamableWithin(AxisAlignedBB) (MCP), World.doesAreaContainFireSource(BoundingBox) (Yarn), axy.b(Lcea;)Z (obf). The following code that does this check

      IBlockState state = this.getBlockState(blockpos$pooledmutableblockpos.setPos(k1, l1, i2));
      Block block = state.getBlock();
      if (block == Blocks.FIRE || block == Blocks.LAVA) { // <--- This checks if the block is lava. Due to the addition of fluid states, there can be a lava fluid at the pos, but the block may not be lava.
       return true;
      }

      could be changed to check the fluid state instead.

            Unassigned Unassigned
            Cadiboo Cadiboo Dev
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: