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

world#getHighestBlockYAt() always results in the roof of the nether

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • OS: Linux 255 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1

    • git-Spigot-b5a13e6-a939fbd (MC: 1.16.2)
    • Yes

      When calling world#getHighestBlockYAt() in the nether, it will always return the top of the bedrock ceiling. The reason I believe this is a bug as this information isn't necessarily useful, as (afaik) world#getMaxHeight() gives you the same information.

      This example takes the value returned by the method and adds one to get the block above it.

      The last version in which I tested this was on Bukkit 1.7 (Legacy version of this plugin) where it gives the highest Y coordinate properly. I cannot confirm how long this has been the case because of this, but I'm willing to bet that it's a new bug introduced with Vanilla 1.16.2 as it's the nether update.

            Unassigned Unassigned
            Column01 Colin Andress
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: