Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Fixed salling sand breaking on full BB partial blocks, closes #2770
Browse files Browse the repository at this point in the history
  • Loading branch information
shoghicp committed Mar 17, 2015
1 parent 7c76c1e commit b4f62bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pocketmine/math/Vector3.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ public function ceil(){

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(){
Expand Down

0 comments on commit b4f62bf

Please sign in to comment.