satoshinm / WebSandboxMC

Bukkit plugin providing a web-based interface with an interactive WebGL 3D preview or glimpse of your server 🕷⏳📦 ⛺
https://www.spigotmc.org/resources/websandboxmc.39415/
MIT License
19 stars 5 forks source link

Should start the player at the highest block at Y, if is non-air #40

Closed satoshinm closed 7 years ago

satoshinm commented 7 years ago

Otherwise you are too easily positioned inside of blocks and have to dig your way out

satoshinm commented 7 years ago

BlockBridge.java:

        int y_start = world.getHighestBlockYAt(x_center, y_center) + 1 - radius - y_offset;

is this math wrong?