menu
#4583118 Call to a member function isRunning() on null

Submitted by PocketMine-MP 3.15.2

General information

Version: 3.15.2
Git commit: d7a66ad7
Plugin involvement: None
Report date: 2020-10-17 19:23:11 +0000 UTC

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux 79c86f76-140b-47d0-831d-df7f880932a4 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Message: Call to a member function isRunning() on null
File: /home/container/plugin_data/GameEngine/mode/bedwars/generators/Generator
Line: #92
Error level: Error
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
        if($this->type === self::TYPE_EMERALD){
return ItemFactory::get(ItemIds::EMERALD);
}else{
return ItemFactory::get(ItemIds::DIAMOND);
}
}

public function entityBaseTick(int $tickDiff = 1): bool{
$parent = parent::entityBaseTick($tickDiff);
if($this->mode->isRunning()){
$this->motion->setComponents(0, 0, 0);

$this->yaw = ($this->yaw + 10) >= 360 ? 0 : ($this->yaw + 10);
$this->ftp->setNameTag($this->getGeneratorName($this->type));
if($this->spawnTick > 1) $this->spawnTick--;
if(intval($this->spawnTick / 20) < 1){
$this->spawnTick = $this->getSpawnTick();
$this->getLevel()->dropItem($this->add(0.5, -3, 0.5), $this->getDropItem());
}
}
#0 src/pocketmine/entity/Entity(1395): bedwars\generators\Generator->entityBaseTick(integer 1)
#1 src/pocketmine/level/Level(852): pocketmine\entity\Entity->onUpdate(integer 564)
#2 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 564)
#3 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 564)
#4 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 564, double 1602962591.8859)
#5 src/pocketmine/Server(2154): pocketmine\Server->tick()
#6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1588): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 src/pocketmine/PocketMine(304): pocketmine\server()
#10 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies