Fixes Position::fromObject() $strong parameter neglected

This commit is contained in:
PEMapModder 2014-08-05 23:45:09 +08:00
parent 2784925a5e
commit 2cead226db

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, $strnog);
}
/**
@ -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 . ")";
}
}
}