menu
#4775674 Call to a member function getId() on bool

Submitted by PocketMine-MP 3.17.5

General information

Version: 3.17.5
Git commit: 3a0c8dd5
Plugin involvement: Direct
Report date: 2021-02-23 12:02:25 +0000 UTC
Server uptime: 0 days 1 hours 34 minutes 41 seconds

System Information

PHP version: 7.4.15
Operating system: linux
System banner: Linux 31980495-9c6d-489d-b13b-d2a21ca37ba9 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64

Error information

Warning: the OreSpawners plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getId() on bool
File: plugins/OreSpawners.phar/src/RKAbdul/OreSpawners/EventListener
Line: #56
Error level: Error
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
        }

if (in_array($bbelow->getId(), $blocks)) {
$tile = $event->getBlock()->getLevel()->getTile($bbelow);
if (!$tile instanceof SimpleTile) return;
$ore = $this->checkBlock($bbelow);
$delay = $this->getDelay($bbelow);
if (!$event->isCancelled()) {
$event->setCancelled(true);
if ($event->getBlock()->getId() == $ore->getId()) return;
$this->plugin->getScheduler()->scheduleDelayedTask(new ClosureTask(function (int $currentTick) use ($event, $ore): void {
if ($event->getBlock()->getLevel() !== null) {
$event->getBlock()->getLevel()->setBlock($event->getBlock()->floor(), $ore, false, true);
if ($this->cfg["fizz-sound"] == true) $event->getBlock()->getLevel()->addSound(new FizzSound($event->getBlock()->asVector3()));
}
}), intval($delay));
}
}
}

#0 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): RKAbdul\OreSpawners\EventListener->onBlockUpdate(object pocketmine\event\block\BlockUpdateEvent)
#1 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object RKAbdul\OreSpawners\EventListener, object pocketmine\event\block\BlockUpdateEvent)
#2 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\block\BlockUpdateEvent)
#3 pmsrc/src/pocketmine/level/Level(842): pocketmine\event\Event->call()
#4 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 113491)
#5 pmsrc/src/pocketmine/Server(2266): pocketmine\level\Level->doTick(integer 113491)
#6 pmsrc/src/pocketmine/Server(2397): pocketmine\Server->checkTickUpdates(integer 113491, double 1614081745.2118)
#7 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#8 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#9 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#10 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#11 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#12 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show