[X] I am using a version of WorldEdit compatible with my Minecraft version.
[X] I am using a version of CraftBook compatible with my Minecraft version.
[X] I am using the latest or recommended version of my platform software.
[X] I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
[X] I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description
When trying to build a bridge on a Y level below 0, the creation fails with the error message "Material not usable for a bridge!". Even though the material is configured and works above Y-Level 0.
Expected Behavior
The bridge is created and toggled below Y-Level 0 as well
Reproduction Steps
Build a bridge at Y=-10 with a valid material
Place signs on both sides (this still works, including confirmation messages)
Try to toggle the bridge
Anything Else?
I believe it could be related to the check below, which hard codes the world bottom at Y=0. It should be replace with World.getMinHeight().
CraftBook Version
3.10.6;4748-a91298e
Platform Version
git-Paper-216 (MC: 1.18.1)
Confirmations
Bug Description
When trying to build a bridge on a Y level below 0, the creation fails with the error message "Material not usable for a bridge!". Even though the material is configured and works above Y-Level 0.
Expected Behavior
The bridge is created and toggled below Y-Level 0 as well
Reproduction Steps
Anything Else?
I believe it could be related to the check below, which hard codes the world bottom at Y=0. It should be replace with
World.getMinHeight()
.https://github.com/EngineHub/CraftBook/blob/master/src/main/java/com/sk89q/craftbook/mechanics/area/simple/Bridge.java#L190