shoghicp moment

This commit is contained in:
GameHerobrine 2024-05-27 22:49:10 +03:00
parent 686f6e1056
commit 3a15dacf51
2 changed files with 1 additions and 2 deletions

View file

@ -294,7 +294,6 @@ class PlayerAPI{
}
$player = $this->get($target);
if(($player instanceof Player) and ($player->entity instanceof Entity)){
$target = $player->username;
$origin = $this->get($name);
if($origin instanceof Player){
$name = $origin->username;

View file

@ -19,7 +19,7 @@ class TNTBlock extends SolidBlock{
"power" => 3,
"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);
ServerAPI::request()->api->entity->spawnToAll($e);
return true;