mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11904511045
This commit is contained in:
commit
0fb1415f7f
@ -2037,7 +2037,7 @@ class World implements ChunkManager{
|
|||||||
* @param Item[] &$returnedItems Items to be added to the target's inventory (or dropped, if the inventory is full)
|
* @param Item[] &$returnedItems Items to be added to the target's inventory (or dropped, if the inventory is full)
|
||||||
* @phpstan-param-out Item $item
|
* @phpstan-param-out Item $item
|
||||||
*/
|
*/
|
||||||
public function useBreakOn(Vector3 $vector, Item &$item = null, ?Player $player = null, bool $createParticles = false, array &$returnedItems = []) : bool{
|
public function useBreakOn(Vector3 $vector, ?Item &$item = null, ?Player $player = null, bool $createParticles = false, array &$returnedItems = []) : bool{
|
||||||
$vector = $vector->floor();
|
$vector = $vector->floor();
|
||||||
|
|
||||||
$chunkX = $vector->getFloorX() >> Chunk::COORD_BIT_SIZE;
|
$chunkX = $vector->getFloorX() >> Chunk::COORD_BIT_SIZE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user