mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Added workaround for #1527
This commit is contained in:
@ -123,17 +123,17 @@ class Vector3{
|
||||
public function getSide($side, $step = 1){
|
||||
switch((int) $side){
|
||||
case 0:
|
||||
return new Vector3($this->x, $this->y - (int) $step, $this->z);
|
||||
return new Vector3($this->x, $this->y - $step, $this->z);
|
||||
case 1:
|
||||
return new Vector3($this->x, $this->y + (int) $step, $this->z);
|
||||
return new Vector3($this->x, $this->y + $step, $this->z);
|
||||
case 2:
|
||||
return new Vector3($this->x, $this->y, $this->z - (int) $step);
|
||||
return new Vector3($this->x, $this->y, $this->z - $step);
|
||||
case 3:
|
||||
return new Vector3($this->x, $this->y, $this->z + (int) $step);
|
||||
return new Vector3($this->x, $this->y, $this->z + $step);
|
||||
case 4:
|
||||
return new Vector3($this->x - (int) $step, $this->y, $this->z);
|
||||
return new Vector3($this->x - $step, $this->y, $this->z);
|
||||
case 5:
|
||||
return new Vector3($this->x + (int) $step, $this->y, $this->z);
|
||||
return new Vector3($this->x + $step, $this->y, $this->z);
|
||||
default:
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user