menu
#16 Implicit conversion from float -917.9329 to int loses precision

Submitted by PocketMine-MP 5.7.1+dev

General information

Version: 5.7.1+dev
Git commit: 7a8f3548
Plugin involvement: Direct
Report date: 2023-12-19 13:25:17 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 18 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 GoCore plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Implicit conversion from float -917.9329 to int loses precision
File: plugins/GoCore/src/corndan/GoCore/managers/BlockHistoryManager
Line: #50
Type: ErrorException
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
        self::$db = new LevelDB("data/blocks.db");
}

public function set(string $world, int $x, int $y, int $z, string $player, int $reason, ?int $time = null): void
{
$time ??= time();
self::$db->put("$world:$x:$y:$z", "$player:$reason:$time");
}

public function get(string $world, int $x, int $y, int $z): ?array
{
$res = self::$db->get("$world:$x:$y:$z");
if ($res === false) {
return null;
}
[$player, $reason, $time] = explode(":", $res);

return [$player, (int)$reason, (int)$time];
}

#0 plugins/GoCore/src/corndan/GoCore/managers/BlockHistoryManager(50): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 8192, string[63] Implicit conversion from float -917.9329 to int loses precision, string[89] /home/anpm5/servers/s1/plugins/GoCore/src/corndan/GoCore/managers/BlockHistoryMa, int 50)
#1 plugins/GoCore/src/corndan/GoCore/handler/CreativeHandler(267): corndan\GoCore\managers\BlockHistoryManager->get(string[5] world, float -917.9329, float 64, float -370.8)
#2 pmsrc/src/event/RegisteredListener(61): corndan\GoCore\handler\CreativeHandler->handleEntitySpawnEvent(object pocketmine\event\entity\EntitySpawnEvent#440465)
#3 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntitySpawnEvent#440465)
#4 pmsrc/src/entity/Entity(956): pocketmine\event\Event->call()
#5 pmsrc/src/player/Player(1424): pocketmine\entity\Entity->onFirstUpdate(int 248)
#6 pmsrc/src/world/World(1070): pocketmine\player\Player->onUpdate(int 248)
#7 pmsrc/src/world/World(990): pocketmine\world\World->actuallyDoTick(int 248)
#8 pmsrc/src/world/WorldManager(351): pocketmine\world\World->doTick(int 248)
#9 pmsrc/src/Server(1869): pocketmine\world\WorldManager->tick(int 248)
#10 pmsrc/src/Server(1751): pocketmine\Server->tick()
#11 pmsrc/src/Server(1096): pocketmine\Server->tickProcessor()
#12 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/)
#13 pmsrc/src/PocketMine(357): pocketmine\server()
#14 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