mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Increased support Y radius
This commit is contained in:
parent
c42fd790ff
commit
1e14485444
1 changed files with 1 additions and 1 deletions
|
|
@ -776,7 +776,7 @@ class Entity extends Position{
|
|||
public function isSupport(Vector3 $pos, $radius = 1){
|
||||
$me = new Vector3($this->x - 0.5, $pos->y, $this->z - 0.5);
|
||||
$diff = $this->y - $pos->y;
|
||||
if($me->distance($pos) < $radius and $diff > 0 and $diff < 1.2){
|
||||
if($me->distance($pos) < $radius and $diff > 0 and $diff < 1.6){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue