mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-19 20:24:29 +00:00
Fixed salling sand breaking on full BB partial blocks, closes #2770
This commit is contained in:
parent
7c76c1e3d7
commit
b4f62bf423
@ -128,9 +128,8 @@ class Vector3{
|
||||
|
||||
public function floor(){
|
||||
$x = (int) $this->x;
|
||||
$y = (int) $this->y;
|
||||
$z = (int) $this->z;
|
||||
return new Vector3($this->x >= $x ? $x : $x - 1, $this->y >= $y ? $y : $y - 1, $this->z >= $z ? $z : $z - 1);
|
||||
return new Vector3($this->x >= $x ? $x : $x - 1, round($this->y), $this->z >= $z ? $z : $z - 1);
|
||||
}
|
||||
|
||||
public function round(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user