From 9ead05a6fa16c619e119c8cdfb9a54408222d097 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 2 Jun 2013 12:46:27 +0200 Subject: [PATCH] Fixed #312 Position::getSide() now returns a Position object instead of a Vector3 one --- src/world/Position.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/world/Position.php b/src/world/Position.php index 10693f17..eec65735 100644 --- a/src/world/Position.php +++ b/src/world/Position.php @@ -33,6 +33,10 @@ class Position extends Vector3{ $this->level = $level; } + public function getSide($side){ + return new Position(parent::side($side), 0, 0, $this->level); + } + public function distance($x = 0, $y = 0, $z = 0){ if(($x instanceof Position) and $x->level !== $this->level){ return PHP_INT_MAX;