BentoBoxWorld / BSkyBlock

BSkyBlock add-on for BentoBox (Discord link: https://discordapp.com/invite/T5HxmvK)
https://bentobox.world
Eclipse Public License 2.0
131 stars 52 forks source link

[API] Negative Y Levels #473

Closed Angeschossen closed 2 years ago

Angeschossen commented 2 years ago

Expected behavior

island.getProtectionBoundingBox().contains(x, -y, z) should return true if the island contains this coordinate.

Observed/Actual behavior

The islands minimum y level is always 0.

Steps/models to reproduce

Call island.getProtectionBoundingBox().contains(x, -y, z) with a negative y value.

BentoBox version

Running PAPER 1.18.1. BentoBox version: 1.20.1 Database: JSON Loaded Game Worlds: bskyblock_world (BSkyBlock): Overworld, Nether, The End Loaded Addons: Biomes 1.13.0 (ENABLED) BSkyBlock 1.15.1 (ENABLED) Challenges 0.8.4 (ENABLED) ControlPanel 1.13.0 (ENABLED) DimensionalTrees 1.6.0 (ENABLED) Level 2.7.0 (ENABLED) Limits 1.17.0 (ENABLED) Warps 1.10.2 (ENABLED)

Plugin list

No response

Other

This has been reported to me. I'm able to reproduce it. I could not find an option in the config to change the minimum y level.

Angeschossen commented 2 years ago

Apparently the last block before the island border are affected as well. So the radius is technically seen: radius = radius-1 blocks. In the latest dev build.

Someone reported this to me. I don't see any reason why this should be caused by the plug-in that hooks into your API. I won't be able to test it before August.