-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
-
CraftBukkit version 4394-Spigot-60c9969-2b9a094 (MC: 1.21.3) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
-
Yes
WorldInfo.getMaxHeight() acts differently in 1.21.3 compared to before, it's now one less.
In 1.21.1 and older, it returned 320, now it returns 319. Similar thing in the nether, where it used to return 256 but now it says 255. I think this makes sense, but ...
According to the docs, "If the max height is 100, there are only blocks from y=0 to y=99."
The docs say this method is an exclusive max height, not inclusive. If it returns 319, this means that there should be no block at y=319, only y=318.
Very basic test plugin:
int maxHeight = getServer().getWorld("world").getMaxHeight(); System.out.println(maxHeight);