Merge pull request #1838 from PEMapModder/patch-2

Fixes Position::fromObject() $strong parameter neglected
This commit is contained in:
Shoghi Cervantes 2014-08-06 11:12:53 +02:00
commit 2904aa06ef

View File

@ -46,7 +46,7 @@ class Position extends Vector3{
}
public static function fromObject(Vector3 $pos, Level $level, $strong = false){
return new Position($pos->x, $pos->y, $pos->z, $level);
return new Position($pos->x, $pos->y, $pos->z, $level, $strong);
}
/**
@ -129,4 +129,4 @@ class Position extends Vector3{
return "Position(level=" . ($this->isValid() ? $this->getLevel()->getName() : "null") . ",x=" . $this->x . ",y=" . $this->y . ",z=" . $this->z . ")";
}
}
}