pmmp / PocketMine-MP

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

Grass can replace itself when placed by players #2813

Closed Johnmacrocraft closed 3 years ago

Johnmacrocraft commented 5 years ago

Issue description

Players can replace grass (this also includes tallgrass) with any of grasses. This does not happen in vanilla.

Steps to reproduce the issue

  1. Place any type of grass
  2. Try to place any of the grasses again (the same type works too, but the other one is recommended for an easier look) in the same position
  3. Notice that you hear the sound of placing and the grass being replaced

OS and versions

Tested on PocketMine-MP master branch server

Plugins

Once again, tested on PocketMine-MP master branch server

Crashdump, backtrace or other files

jasonw4331 commented 5 years ago

Dead bushes should also not be able to replace grass

dktapps commented 5 years ago

I doubt that's intentional behaviour. Dead bush is non-replaceable, and non-replaceable pretty much always takes precedence over replaceable from what I've seen.

I'd recommend testing in PC 1.13 and not MCPE. (this doesn't imply that I've tested this myself, but as a side note.)

dktapps commented 5 years ago

re to the bush issue: In PC 1.14 snapshots they are not placeable on grass blocks, but can replace tallgrass.

dktapps commented 5 years ago

As far as I can tell, the behaviour is that any replaceable block can be replaced by anything except itself. This is a little difficult to implement in PM due to how block placement currently works. It will necessitate block transactions.

dktapps commented 3 years ago

Fixed by 334bf1277d6897cbc237b7be5f7c5f6ad7d8e8f1.