Fixed motion, physics

This commit is contained in:
Shoghi Cervantes
2014-07-06 12:08:05 +02:00
parent 0503adc08c
commit 643a4c1ef5
4 changed files with 8 additions and 8 deletions

View File

@@ -297,10 +297,9 @@ abstract class Entity extends Position implements Metadatable{
$diffY = $y - $j;
$diffZ = $z - $k;
$start = microtime(true);
$list = $this->getLevel()->getCollisionBlocks($this->boundingBox);
if(count($list) === 0 and $this->getLevel()->isFullBlock(new Vector3($i, $j, $k))){
if(count($list) === 0 and !$this->getLevel()->isFullBlock(new Vector3($i, $j, $k))){
return false;
}else{
$flag = !$this->getLevel()->isFullBlock(new Vector3($i - 1, $j, $k));