menu
#7034956 pocketmine\world\particle\HeartParticle::__construct(): Argument #1 ($scale) must be of type int, pocketmine\math\Vector3 given, called in phar://C:/Users/anist/Desktop/PocketMine/plugins/deeeeeeeeeeeeeeee.phar/src/CosmeticsUI/Task/HeartParticleActivate.php on line 30

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Indirect
Report date: 2022-06-23 14:29:54 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 2 seconds

System Information

PHP version: 8.0.19
Operating system: win
System banner: Windows NT DESKTOP-9P84H7C 10.0 build 19043 (Windows 10) AMD64

Error information

Warning: the CosmeticsUI plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: pocketmine\world\particle\HeartParticle::__construct(): Argument #1 ($scale) must be of type int, pocketmine\math\Vector3 given, called in phar://C:/Users/anist/Desktop/PocketMine/plugins/deeeeeeeeeeeeeeee.phar/src/CosmeticsUI/Task/HeartParticleActivate.php on line 30
File: pmsrc/src/world/particle/HeartParticle
Line: #31
Error level: TypeError
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
declare(strict_types=1);

namespace pocketmine\world\particle;

use pocketmine\math\Vector3;
use pocketmine\network\mcpe\protocol\LevelEventPacket;
use pocketmine\network\mcpe\protocol\types\ParticleIds;

class HeartParticle implements Particle{
public function __construct(private int $scale = 0){}

public function encode(Vector3 $pos) : array{
return [LevelEventPacket::standardParticle(ParticleIds::HEART, $this->scale, $pos)];
}
}
#0 plugins/deeeeeeeeeeeeeeee.phar/src/CosmeticsUI/Task/HeartParticleActivate(30): pocketmine\world\particle\HeartParticle->__construct(object pocketmine\math\Vector3#123001)
#1 pmsrc/src/scheduler/TaskHandler(114): CosmeticsUI\Task\HeartParticleActivate->onRun()
#2 pmsrc/src/scheduler/TaskScheduler(141): pocketmine\scheduler\TaskHandler->run()
#3 pmsrc/src/plugin/PluginManager(498): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 984)
#4 pmsrc/src/Server(1811): pocketmine\plugin\PluginManager->tickSchedulers(int 984)
#5 pmsrc/src/Server(1700): pocketmine\Server->tick()
#6 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#7 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[34] C:\Users\anist\Desktop\PocketMine\, string[42] C:\Users\anist\Desktop\PocketMine\plugins\)
#8 pmsrc/src/PocketMine(327): pocketmine\server()
#9 pmsrc(11): require(string[78] phar://C:/Users/anist/Desktop/PocketMine/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show