menu
#9649036 Call to a member function getStateId() on array

Submitted by PocketMine-MP 5.7.0

General information

Version: 5.7.0
Git commit: 22b9e703
Plugin involvement: Direct
Report date: 2023-11-21 02:11:26 +0000 UTC
Server uptime: 0 days 0 hours 2 minutes 43 seconds

System Information

PHP version: 8.1.23
JIT status: Not available
Operating system: win
System banner: Windows NT DESKTOP-FP3EKU0 10.0 build 19045 (Windows 10) AMD64

Error information

Warning: the Kernel plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to a member function getStateId() on array
File: plugins/Kernel2/src/kernel/utils/FakeBlock
Line: #76
Type: Error
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
	    $this->time = $time;
$this->alive = true;
$this->world = $world;
$this->passThrough = $passThrough;
$this->fc = function (){};
}

public function show($players){
// var_dump($this->block);
$bid = TypeConverter::getInstance()->getBlockTranslator()->internalIdToNetworkId($this->block->getStateId());
$id = $this->id;
$pk = PK::AddActorPacket();
$pk->type = "minecraft:falling_block";
$pk->actorUniqueId = $id;
$pk->actorRuntimeId = $id;
$pk->position = new Vector3($this->x , $this->y, $this->z);
// $pk->motion = new Vector3($this->motionX, $this->motionY, $this->motionZ);
$pk->motion = new Vector3($this->motionX, $this->motionY, $this->motionZ);
$b = $this->block;
$flags = 0;
#0 plugins/Kernel2/src/kernel/entity/npc/Mission/Chapter1/LeafGuy(631): kernel\utils\FakeBlock->show(array[1])
#1 plugins/Kernel2/src/kernel/scheduler/Scheduler(35): kernel\entity\npc\Mission\Chapter1\LeafGuy->summonGuard2(int 5, object pocketmine\math\Vector3#156557)
#2 pmsrc/src/scheduler/TaskHandler(113): pocketmine\scheduler\Task@anonymous�D:\PMMP\parallel\plugins\Kernel2\src\kernel\scheduler\Scheduler.php:35$276->onRun()
#3 pmsrc/src/scheduler/TaskScheduler(137): pocketmine\scheduler\TaskHandler->run()
#4 pmsrc/src/plugin/PluginManager(530): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 3219)
#5 pmsrc/src/Server(1790): pocketmine\plugin\PluginManager->tickSchedulers(int 3219)
#6 pmsrc/src/Server(1679): pocketmine\Server->tick()
#7 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#8 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[17] D:\PMMP\parallel\, string[25] D:\PMMP\parallel\plugins\)
#9 pmsrc/src/PocketMine(357): pocketmine\server()
#10 pmsrc(11): require(string[61] phar://D:/PMMP/parallel/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show