Vanilla-alike Explosions

This commit is contained in:
Shoghi Cervantes
2013-09-07 01:28:15 +02:00
parent 24211764ce
commit 0ddc48ca80
2 changed files with 42 additions and 34 deletions

View File

@@ -31,7 +31,7 @@ class TNTBlock extends SolidBlock{
if(($player->gamemode & 0x01) === 0){
$item->useOn($this);
}
$explosion = new Explosion($this->level, $this, 3);
$explosion = new Explosion(new Position($this->x + 0.5, $this->y, $this->z + 0.5, $this->level), 4);
$explosion->explode();
return true;
}