Implemented bounding box limits for item placing

This commit is contained in:
Shoghi Cervantes 2014-05-29 17:04:37 +02:00
parent 49370c21d1
commit 61ce7f11d6

View File

@ -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){