From 3dd4fe706c236327d1d1bf555e124ff3cbc5e65e Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 28 May 2015 14:20:50 +0200 Subject: [PATCH] Changed Vector3 floor() and ceil() --- src/pocketmine/math/Vector3.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/math/Vector3.php b/src/pocketmine/math/Vector3.php index 546088e4d..c022463a4 100644 --- a/src/pocketmine/math/Vector3.php +++ b/src/pocketmine/math/Vector3.php @@ -123,11 +123,11 @@ class Vector3{ } public function ceil(){ - return new Vector3((int) ($this->x + 1), (int) ($this->y + 1), (int) ($this->z + 1)); + return new Vector3((int) ceil($this->x), (int) ceil($this->y), (int) ceil($this->z)); } public function floor(){ - return new Vector3((int) $this->x, (int) $this->y, (int) $this->z); + return new Vector3((int) floor($this->x), (int) floor($this->y), (int) floor($this->z)); } public function round(){