Updated Math dependency

This commit is contained in:
Dylan K. Taylor
2018-06-09 13:05:25 +01:00
parent d04991feb6
commit 37b445f210
7 changed files with 14 additions and 14 deletions

View File

@ -81,7 +81,7 @@ class SplashPotion extends Throwable{
if($hasEffects){
if(!$this->willLinger()){
foreach($this->level->getNearbyEntities($this->boundingBox->grow(4.125, 2.125, 4.125), $this) as $entity){
foreach($this->level->getNearbyEntities($this->boundingBox->expandedCopy(4.125, 2.125, 4.125), $this) as $entity){
if($entity instanceof Living){
$distanceSquared = $entity->distanceSquared($this);
if($distanceSquared > 16){ //4 blocks