mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 09:49:50 +00:00
Implemented bounding box limits for item placing
This commit is contained in:
parent
49370c21d1
commit
61ce7f11d6
@ -842,10 +842,9 @@ class Level{
|
|||||||
//$face = -1;
|
//$face = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Implement using Bounding Boxes, all entities
|
if($hand->isSolid === true and $this->getCollidingEntities($hand->getBoundingBox())){
|
||||||
/*if($hand->isSolid === true and $player->inBlock($block)){
|
|
||||||
return false; //Entity in block
|
return false; //Entity in block
|
||||||
}*/
|
}
|
||||||
|
|
||||||
|
|
||||||
if($player instanceof Player){
|
if($player instanceof Player){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user