mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Prefix for Kick Flying when Player on Fence
This commit is contained in:
parent
cb47bf82c9
commit
9373c93737
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue