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

Explosions won't damage an entity if the distance to its eyes is 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18, 1.18.2, 22w18a, 1.20.1, 23w33a
    • None
    • Confirmed
    • Entities
    • Low
    • Platform

      How to reproduce:

      1. /gamemode survival
      2. /summon tnt ~ ~1.55875000357628 ~ {NoGravity:1b}

      The reason is that avoids division by 0 by just ignoring zero-distance entities in net.minecraft.world.level.Explosion#explode().

      Obviously, it's quite hard to abuse this bug, but hacked clients may make use of it.

            Unassigned Unassigned
            Iaiao Iaiao
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: