mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fix some strict type violations reported by PhpStorm (strict types <3)
This commit is contained in:
@ -74,7 +74,7 @@ abstract class Projectile extends Entity{
|
||||
* @return int
|
||||
*/
|
||||
public function getResultDamage() : int{
|
||||
return ceil(sqrt($this->motionX ** 2 + $this->motionY ** 2 + $this->motionZ ** 2) * $this->damage);
|
||||
return (int) ceil(sqrt($this->motionX ** 2 + $this->motionY ** 2 + $this->motionZ ** 2) * $this->damage);
|
||||
}
|
||||
|
||||
public function onCollideWithEntity(Entity $entity){
|
||||
|
Reference in New Issue
Block a user