mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
shoghicp moment
This commit is contained in:
parent
686f6e1056
commit
3a15dacf51
2 changed files with 1 additions and 2 deletions
|
|
@ -294,7 +294,6 @@ class PlayerAPI{
|
||||||
}
|
}
|
||||||
$player = $this->get($target);
|
$player = $this->get($target);
|
||||||
if(($player instanceof Player) and ($player->entity instanceof Entity)){
|
if(($player instanceof Player) and ($player->entity instanceof Entity)){
|
||||||
$target = $player->username;
|
|
||||||
$origin = $this->get($name);
|
$origin = $this->get($name);
|
||||||
if($origin instanceof Player){
|
if($origin instanceof Player){
|
||||||
$name = $origin->username;
|
$name = $origin->username;
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class TNTBlock extends SolidBlock{
|
||||||
"power" => 3,
|
"power" => 3,
|
||||||
"fuse" => 20 * 4, //4 seconds
|
"fuse" => 20 * 4, //4 seconds
|
||||||
);
|
);
|
||||||
$this->level->setBlock($this, new AirBlock(), false, false, true);
|
$this->level->fastSetBlockUpdate($this->x, $this->y, $this->z, 0, 0, true);
|
||||||
$e = ServerAPI::request()->api->entity->add($this->level, ENTITY_OBJECT, OBJECT_PRIMEDTNT, $data);
|
$e = ServerAPI::request()->api->entity->add($this->level, ENTITY_OBJECT, OBJECT_PRIMEDTNT, $data);
|
||||||
ServerAPI::request()->api->entity->spawnToAll($e);
|
ServerAPI::request()->api->entity->spawnToAll($e);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue