diff --git a/src/pocketmine/math/Vector2.php b/src/pocketmine/math/Vector2.php index b454d5ec6..b560165cc 100644 --- a/src/pocketmine/math/Vector2.php +++ b/src/pocketmine/math/Vector2.php @@ -65,11 +65,11 @@ class Vector2{ } public function ceil(){ - return new Vector2((int) ($this->x + 1), (int) ($this->y + 1)); + return new Vector2((int) ceil($this->x), (int) ceil($this->y)); } public function floor(){ - return new Vector2((int) $this->x, (int) $this->y); + return new Vector2((int) floor($this->x), (int) floor($this->y)); } public function round(){