Solved DestroyBlockParticle

Discussion in 'Development' started by Astro, Dec 5, 2018.

  1. Astro

    Astro Witch

    Messages:
    50
    GitHub:
    RealAstro
    It was working fine but i suddenly started getting errors cuz of it..

    PHP:
        public function start(): void{
            
    $this->spawnSmallHead();
            
    $crate $this->smallHead;
            for(
    $yaw 0$yaw 360$yaw += 1$crate->yaw $yaw;
            
    $level Server::getInstance()->getLevelByName('world');
            
    $level->addParticle(new DestroyBlockParticle($crate, new EndPortalFrame()));
            
    $this->plugin->getScheduler()->scheduleDelayedTask(new EVTask($crate$this->player0$this->plugin), 20);
        }
    05.12 13:37:06 [Server] Server thread/CRITICAL Could not pass event 'pocketmine\event\block\BlockPlaceEvent' to 'HestraCore v1': Call to a member function addParticle() on null on InfernalCore\EnderVaults\EnderVaultListener 05.12 13:37:06 [Server] Server thread/CRITICAL Error: "Call to a member function addParticle() on null" (EXCEPTION) in "INCore/src/InfernalCore/EnderVaults/EnderVault" at line 71
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    593
    the world with the name 'world' is not loaded, does not exist or there are no players in it.
     
  3. Astro

    Astro Witch

    Messages:
    50
    GitHub:
    RealAstro
    yep, i just figured it out, i accidentally changed the world name into World and not world
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.