Remove $blockClicked from Block::place() #5509
Labels
BC break
Breaks API compatibility
Category: API
Related to the plugin API
Category: Core
Related to internal functionality
Easy task
Probably really easy to do, good task for first-time contributors
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Description
This parameter:
This is, of course, BC breaking.
The only irreplaceable use case for it is to detect when the block replaced is the block clicked (e.g. when clicking on grass). However, this case is currently buggy anyway due to usage of dodgy Facing values (try placing a bell next to a wall by clicking on the side of grass), and the signature needs to be changed to avoid passing dodgy values into
place()
anyway.Alternative methods
The text was updated successfully, but these errors were encountered: