CraftBook 3

CraftBook 3

139k Downloads

Bridge mechanic doesn't work below Y=0

minoneer opened this issue ยท 2 comments

commented

CraftBook Version

3.10.6;4748-a91298e

Platform Version

git-Paper-216 (MC: 1.18.1)

Confirmations

  • I am using the most recent Minecraft release.
  • I am using a version of WorldEdit compatible with my Minecraft version.
  • I am using a version of CraftBook compatible with my Minecraft version.
  • I am using the latest or recommended version of my platform software.
  • I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
  • 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

  1. Build a bridge at Y=-10 with a valid material
  2. Place signs on both sides (this still works, including confirmation messages)
  3. 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().

https://github.com/EngineHub/CraftBook/blob/master/src/main/java/com/sk89q/craftbook/mechanics/area/simple/Bridge.java#L190

commented

Fixed in 564ddd8

commented

Thanks :)