mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 01:39:52 +00:00
Fixed #3055
This commit is contained in:
parent
be6b0656a0
commit
1da0a48edb
@ -56,10 +56,10 @@ class Cactus extends Transparent{
|
|||||||
|
|
||||||
return new AxisAlignedBB(
|
return new AxisAlignedBB(
|
||||||
$this->x + 0.0625,
|
$this->x + 0.0625,
|
||||||
$this->y,
|
$this->y + 0.0625,
|
||||||
$this->z + 0.0625,
|
$this->z + 0.0625,
|
||||||
$this->x + 0.9375,
|
$this->x + 0.9375,
|
||||||
$this->y + 1,
|
$this->y + 0.9375,
|
||||||
$this->z + 0.9375
|
$this->z + 0.9375
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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();
|
$vector = $vector->normalize();
|
||||||
$d = 0.014;
|
$d = 0.014;
|
||||||
$this->motionX += $vector->x * $d;
|
$this->motionX += $vector->x * $d;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user