menu
#2387724 Call to undefined method Cinematic\ShowTask::toABGRArray()

Submitted by PocketMine-MP 3.8.1

General information

Version: 3.8.1
Git commit: 7521160f
Plugin involvement: Direct
Report date: 2019-05-15 20:57:59 +0000 UTC

System Information

PHP version: 7.2.13
Operating system: win
System banner: Windows NT DESKTOP-PMC7MFI 10.0 build 17763 (Windows 10) AMD64

Error information

Warning: the Cinematic plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method Cinematic\ShowTask::toABGRArray()
File: plugins/Cinematic/src/Cinematic/ShowTask
Line: #32
Error level: Error
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
	
public function onRun(int $currentTick) : void{
$p=$this->p;
$pl=$this->plugin;
$image = imagecreatetruecolor(128, 128);
if(is_resource($image)){
$this->createPicture($image, $p);
$block = $pl->getServer()->getDefaultLevel()->getTile(new Vector3(0,0,0));
if(!$block instanceof ItemFrame){
$colors = $this->toABGRArray($image);
$map = new ImageMap();
$block->setItem($map);
$mid = $map->getMapId();
$this->mid[$p->getName()] = $mid;
$this->bytes[$p->getName()] = $colors;
imagedestroy($image);
$p->getInventory()->setItemInHand($p->getLevel()->getTile(new Vector3(0,0,0))->getItem());
}else{
$pl->getLogger()->info("Эмм там нет рамки");
}
#0 src/pocketmine/scheduler/TaskHandler(159): Cinematic\ShowTask->onRun(integer 1475)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1475)
#2 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1475)
#3 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 1475)
#4 src/pocketmine/Server(2335): pocketmine\Server->tick()
#5 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1775): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\gapri\OneDrive\Desktop\..........\Murat\Sandstone 1.9\, string C:\Users\gapri\OneDrive\Desktop\..........\Murat\Sandstone 1.9\plugins\)
#8 (1): require(string phar://C:/Users/gapri/OneDrive/Desktop/........../Murat/Sandstone 1.9/Sandstone.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show