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

TNT performs raycast check for fall damage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1, 1.20.2, 1.21.1, 24w36a
    • None
    • Plausible
    • Performance
    • Normal
    • Platform

      If a TnT entity has -y motion, it will perform a raycast on movement which is usually utilised for entities to calculate their accumulated fall damage, however this check is not necessary for TnT which is unaffected by fall damage. This raycast produces severe performance issues in TnT projectiles travelling at high speeds as the raycast will be projected over a very long distance for each tick the TnT moves despite achieving nothing.

      The relevant code can be found in Entity.java

            Unassigned Unassigned
            cubicmetre
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: