Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6231

LivingEntity#getTargetBlock doesn't properly respect y-level

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • N/A but;
      Windows 10
      Java 8

    • Built from latest (bc6a175eff672c6c1ca469211dffd61f124fa6a3)
    • Not causing it but example used EssentialsX
    • Yes

      Using LivingEntity#getTargetBlock doesn't actually get the player's target block if they're looking at a lower y-level than their head is at. 

      Here's an example with Essentials's /editsign command which uses getTargetBlock(null, 5) to detect the target block

            Unassigned Unassigned
            WheezyGold7931 JRoy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: