Fixed Explosion.php WeakRef issue

This commit is contained in:
PEMapModder 2014-06-18 11:42:41 +08:00
parent 85007a9dfe
commit 20e419a9c4

View File

@ -50,7 +50,7 @@ class Explosion{
private $what; private $what;
public function __construct(Position $center, $size, $what = null){ public function __construct(Position $center, $size, $what = null){
$this->level = $center->level; $this->level = $center->getLevel();
$this->source = $center; $this->source = $center;
$this->size = max($size, 0); $this->size = max($size, 0);
$this->what = $what; $this->what = $what;