Fixed client crashing (temp.), fixed clients not spawning. (Fixes #1640 #1636 #1590 #1573)

This commit is contained in:
Shoghi Cervantes
2014-07-14 02:19:14 +02:00
parent eccd82ca4b
commit 6c442551f7
8 changed files with 89 additions and 73 deletions

View File

@@ -726,17 +726,12 @@ abstract class Block extends Position implements Metadatable{
* Sets the block position to a new Position object
*
* @param Position $v
*
* @throws \RuntimeException
*/
final public function position(Position $v){
if(!$v->isValid()){
throw new \RuntimeException("Undefined Level reference");
}
$this->x = (int) $v->x;
$this->y = (int) $v->y;
$this->z = (int) $v->z;
$this->setLevel($v->getLevel(), false);
$this->level = $v->level;
}
/**