mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Fixed collision against other entities
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user