Added lily pad, checked some bounding boxes

This commit is contained in:
Shoghi Cervantes
2015-06-05 13:58:59 +02:00
parent 6e69e15dfd
commit ac4194eb3f
9 changed files with 156 additions and 43 deletions

View File

@ -48,6 +48,10 @@ class Vine extends Transparent{
return 1;
}
public function canPassThrough(){
return true;
}
public function hasEntityCollision(){
return true;
}
@ -118,7 +122,7 @@ class Vine extends Transparent{
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){
if($target->isSolid()){
if(!$target->isTransparent() and $target->isSolid()){
$faces = [
0 => 0,
1 => 0,