mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Vanilla-alike Explosions
This commit is contained in:
parent
24211764ce
commit
0ddc48ca80
2 changed files with 42 additions and 34 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue