menu
#22 Implicit conversion from float 2173.537604456828 to int loses precision

Submitted by PocketMine-MP 5.7.1+dev

General information

Version: 5.7.1+dev
Git commit: 7a8f3548
Plugin involvement: Indirect
Report date: 2023-12-20 17:24:53 +0000 UTC
Server uptime: 0 days 1 hours 29 minutes 2 seconds

System Information

PHP version: 8.2.9
JIT status: Not available
Operating system: linux
System banner: Linux ananasmine.ru 5.15.0-87-generic #97-Ubuntu SMP Mon Oct 2 21:09:21 UTC 2023 x86_64

Error information

Warning: the 4Cosmetics plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: Implicit conversion from float 2173.537604456828 to int loses precision
File: pmsrc/vendor/pocketmine/color/src/Color
Line: #35
Type: ErrorException
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use function count;
use function intdiv;

final class Color{
private int $a;
private int $r;
private int $g;
private int $b;

public function __construct(int $r, int $g, int $b, int $a = 0xff){
$this->r = $r & 0xff;
$this->g = $g & 0xff;
$this->b = $b & 0xff;
$this->a = $a & 0xff;
}

/**
* Returns the alpha (opacity) value of this colour.
*/
public function getA() : int{
#0 pmsrc/vendor/pocketmine/color/src/Color(35): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 8192, string[71] Implicit conversion from float 2173.537604456828 to int loses precision, string[83] phar:///home/anpm5/startup/PocketMine-MP.phar/vendor/pocketmine/color/src/Color., int 35)
#1 plugins/4Cosmetic/src/themestl/fourcosmetic/cosmetic/particle/RainbowParticleCosmetic(48): pocketmine\color\Color->__construct(int 255, float 2173.5376044568, int 0)
#2 plugins/4Cosmetic/src/themestl/fourcosmetic/cosmetic/particle/RainbowParticleCosmetic(26): themestl\fourcosmetic\cosmetic\particle\RainbowParticleCosmetic::hsv2rgb(float 0.033426183844011, int 1, int 255, null)
#3 plugins/4Cosmetic/src/themestl/fourcosmetic/cosmetic/particle/ParticleCosmeticManager(32): themestl\fourcosmetic\cosmetic\particle\RainbowParticleCosmetic->render(array[1])
#4 pmsrc/src/scheduler/TaskHandler(113): themestl\fourcosmetic\cosmetic\particle\ParticleCosmeticManager->onRun()
#5 pmsrc/src/scheduler/TaskScheduler(137): pocketmine\scheduler\TaskHandler->run()
#6 pmsrc/src/plugin/PluginManager(530): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 106731)
#7 pmsrc/src/Server(1862): pocketmine\plugin\PluginManager->tickSchedulers(int 106731)
#8 pmsrc/src/Server(1751): pocketmine\Server->tick()
#9 pmsrc/src/Server(1096): pocketmine\Server->tickProcessor()
#10 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[23] /home/anpm5/servers/s1/, string[31] /home/anpm5/servers/s1/plugins/)
#11 pmsrc/src/PocketMine(357): pocketmine\server()
#12 pmsrc(11): require(string[64] phar:///home/anpm5/startup/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show