pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.25k stars 1.53k forks source link

Tall grass populator may crash the server at the height limit #3294

Closed dktapps closed 2 months ago

dktapps commented 4 years ago

Issue description

Tall grass populator doesn't check world bounds. If it tries to grow on top of a block at y=255, the server will experience errors.

OS and versions

dktapps commented 3 years ago

As it turns out, the tall grass populator may not generate such structures because the generator won't place structures any higher than y=127. However, a crash may potentially still occur when using bonemeal on grass at y=255.

jasonw4331 commented 3 years ago

Is this still deemed a valid issue?

Dhaiven commented 3 months ago

When we use bone meal on grass, bone meal can't produce double tall grass. So the bug describe in this issues is invalid

dktapps commented 2 months ago

When we use bone meal on grass, bone meal can't produce double tall grass. So the bug describe in this issues is invalid

That's incorrect, you can try it yourself in vanilla

Dhaiven commented 2 months ago

That's incorrect, you can try it yourself in vanilla

In vanilla, bone meal can produce double tall grass but not in pocketmine

dktapps commented 2 months ago

Right, good point.