pmmp / PocketMine-MP

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

The light block cannot be placed on itself #5132

Closed Gaprix closed 2 years ago

Gaprix commented 2 years ago

Issue description

The light block cannot be placed on itself.

Steps to reproduce the issue

  1. Place the light block
  2. Hold down the shift key
  3. Try placing the second block of light on the first one

OS and versions

Plugins

None

Crashdump, backtrace or other files

https://youtu.be/gWKfZdLhJuQ

Gaprix commented 2 years ago

More details:

  1. If you click on the light block with the shift key pressed when its value is 15, the new light block will disappear immediately.

  2. If you click on the light block with the shift key pressed when its value is NOT 15, the new light block will remain and disappear only after the second click on it. In this case, the value of the first light block will become 15, regardless of the previous value.