mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Added vertical and horizontal collision detection to Entities
This commit is contained in:
@ -52,7 +52,7 @@ class Snowball extends Projectile{
|
||||
|
||||
$hasUpdate = parent::onUpdate($currentTick);
|
||||
|
||||
if($this->age > 1200 or $this->onGround){
|
||||
if($this->age > 1200 or $this->isCollided){
|
||||
$this->kill();
|
||||
$hasUpdate = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user