Fixed collision against other entities

This commit is contained in:
Shoghi Cervantes
2014-05-29 18:03:17 +02:00
parent 61ce7f11d6
commit a45f8782b1
4 changed files with 43 additions and 5 deletions

View File

@@ -277,6 +277,10 @@ abstract class Entity extends Position implements Metadatable{
$this->health = (int) min($this->health, $this->maxHealth);
}
public function canCollideWith(Entity $entity){
return true;
}
protected function checkObstruction($x, $y, $z){
$i = (int) $x;
$j = (int) $y;