This commit is contained in:
Shoghi Cervantes
2015-05-23 11:37:48 +02:00
parent be6b0656a0
commit 1da0a48edb
2 changed files with 3 additions and 3 deletions

View File

@@ -56,10 +56,10 @@ class Cactus extends Transparent{
return new AxisAlignedBB(
$this->x + 0.0625,
$this->y,
$this->y + 0.0625,
$this->z + 0.0625,
$this->x + 0.9375,
$this->y + 1,
$this->y + 0.9375,
$this->z + 0.9375
);
}

View File

@@ -1317,7 +1317,7 @@ abstract class Entity extends Location implements Metadatable{
}
}
if(!($this instanceof Player) and $vector->length() > 0){
if(!($this instanceof Player) and $vector->lengthSquared() > 0){
$vector = $vector->normalize();
$d = 0.014;
$this->motionX += $vector->x * $d;