Merge pull request #1508 from LegendOfMCPE/master

Fixed Explosion.php WeakRef issue
This commit is contained in:
Shoghi Cervantes 2014-06-18 18:28:32 +02:00
commit 83081456f2

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;