menu
#4775780 Call to a member function getHighestBlockAt() on null

Submitted by PocketMine-MP 3.17.5

General information

Version: 3.17.5
Git commit: 3a0c8dd5
Plugin involvement: Direct
Report date: 2021-02-23 13:32:07 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux eff20409-1b61-4feb-82e9-0b6267dc2ad9 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64

Error information

Warning: the ArtisanCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getHighestBlockAt() on null
File: plugins/ArtisanCore_25_2-2-1-1(1)(1)(3)(2)(4)(1)(2).phar/src/core/envoy/event/task/EnvoyHeartbeatTask
Line: #55
Error level: Error
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
    public function onRun(int $currentTick) {
if(Elemental::getInstance()->getAnnouncementManager()->getRestarter()->getRestartProgress() > 5) {
if(count($this->manager->getEnvoys()) < 5) {
if ($this->delay < 1){
$x = mt_rand(1, 1000);
$z = mt_rand(1, 1000);

//$this->level->loadChunk($x, $z, true);
$level = Server::getInstance()->getLevelByName(Faction::CLAIM_WORLD);
$y = $this->level->getHighestBlockAt($x, $z);
if($y < 0) {
return;
}
$position = $this->level->getSafeSpawn(new Vector3($x, $y, $z));
$this->manager->spawnEnvoy($position);
Server::getInstance()->broadcastMessage(self::ENVOY_PREFIX . "An Envoy Has Spawned!");
}
$this->delay++;
if ($this->delay > 60){
$this->delay = 0;
#0 pmsrc/src/pocketmine/scheduler/TaskHandler(137): core\envoy\event\task\EnvoyHeartbeatTask->onRun(integer 1)
#1 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1)
#2 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)
#3 pmsrc/src/pocketmine/Server(2390): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)
#4 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#5 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#6 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#7 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#8 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#9 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show