Fixed salling sand breaking on full BB partial blocks, closes #2770

This commit is contained in:
Shoghi Cervantes 2015-03-17 17:59:49 +01:00
parent 7c76c1e3d7
commit b4f62bf423
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -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(){