mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 17:20:02 +00:00
Prefix for Kick Flying when Player on Fence
This commit is contained in:
parent
cb47bf82c9
commit
9373c93737
@ -410,7 +410,8 @@ class Entity extends Position{
|
|||||||
|
|
||||||
if($this->isStatic === false){
|
if($this->isStatic === false){
|
||||||
$startX = floor($this->x - 0.5 - $this->size - 1);
|
$startX = floor($this->x - 0.5 - $this->size - 1);
|
||||||
$y = (int) round($this->y - 1);
|
//prefix for flying when player on fence
|
||||||
|
$y = (int) floor($this->y - 1);
|
||||||
$startZ = floor($this->z - 0.5 - $this->size - 1);
|
$startZ = floor($this->z - 0.5 - $this->size - 1);
|
||||||
$endX = ceil($this->x - 0.5 + $this->size + 1);
|
$endX = ceil($this->x - 0.5 + $this->size + 1);
|
||||||
$endZ = ceil($this->z - 0.5 + $this->size + 1);
|
$endZ = ceil($this->z - 0.5 + $this->size + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user