menu
#10625854 Implicit conversion from float 459.1071075003896 to int loses precision

Submitted by PocketMine-MP 4.26.0

General information

Version: 4.26.0
Git commit: 30433bba
Plugin involvement: Direct
Report date: 2024-04-03 05:59:33 +0000 UTC
Server uptime: 0 days 1 hours 27 minutes 15 seconds

System Information

PHP version: 8.1.26
JIT status: Not available
Operating system: linux
System banner: Linux 31e00c9e-f253-41d1-b498-3c8e20e158b1 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64

Error information

Warning: the BlockSniper plugin was directly involved in this crash. Please contact the plugin author.
Thread:
Message: Implicit conversion from float 459.1071075003896 to int loses precision
File: plugins/BlockSniper.phar/src/BlockHorizons/BlockSniper/brush/Shape
Line: #124
Type: ErrorException
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
	 *
* @param ChunkManager $chunkManager
*
* @return string[]
*/
public function getTouchedChunks(ChunkManager $chunkManager) : array{
$touchedChunks = [];
for($x = $this->selection->minX; $x <= $this->selection->maxX + 16; $x += 16){
for($z = $this->selection->minZ; $z <= $this->selection->maxZ + 16; $z += 16){
$chunk = $chunkManager->getChunk($x >> 4, $z >> 4);
if($chunk === null){
continue;
}
$touchedChunks[World::chunkHash($x >> 4, $z >> 4)] = FastChunkSerializer::serializeTerrain($chunk);
}
}

return $touchedChunks;
}
}
#0 plugins/BlockSniper.phar/src/BlockHorizons/BlockSniper/brush/Shape(124): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 8192, string[71] Implicit conversion from float 459.1071075003896 to int loses precision, string[93] phar:///home/container/plugins/BlockSniper.phar/src/BlockHorizons/BlockSniper/br, int 124)
#1 plugins/BlockSniper.phar/src/BlockHorizons/BlockSniper/brush/async/tasks/BrushTask(63): BlockHorizons\BlockSniper\brush\Shape->getTouchedChunks(object pocketmine\world\World#22768)
#2 plugins/BlockSniper.phar/src/BlockHorizons/BlockSniper/brush/Brush(98): BlockHorizons\BlockSniper\brush\async\tasks\BrushTask->__construct(object BlockHorizons\BlockSniper\brush\Brush#53029, object BlockHorizons\BlockSniper\session\PlayerSession#53598, object BlockHorizons\BlockSniper\brush\shape\SphereShape#157396, object BlockHorizons\BlockSniper\brush\type\ReplaceType#154186, object pocketmine\world\World#22768, array[0])
#3 plugins/BlockSniper.phar/src/BlockHorizons/BlockSniper/listener/BrushListener(116): BlockHorizons\BlockSniper\brush\Brush->execute(object BlockHorizons\BlockSniper\session\PlayerSession#53598, object pocketmine\world\Position#88320, array[0], null)
#4 plugins/BlockSniper.phar/src/BlockHorizons/BlockSniper/listener/BrushListener(84): BlockHorizons\BlockSniper\listener\BrushListener->useBrush(object BlockHorizons\BlockSniper\session\PlayerSession#53598, object BlockHorizons\BlockSniper\brush\Brush#53029, object pocketmine\player\Player#27703)
#5 pmsrc/src/event/RegisteredListener(61): BlockHorizons\BlockSniper\listener\BrushListener->brush(object pocketmine\event\player\PlayerItemUseEvent#189893)
#6 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerItemUseEvent#189893)
#7 pmsrc/src/player/Player(1559): pocketmine\event\Event->call()
#8 pmsrc/src/network/mcpe/handler/InGamePacketHandler(510): pocketmine\player\Player->useHeldItem()
#9 pmsrc/src/network/mcpe/handler/InGamePacketHandler(344): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#226220)
#10 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(94): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#80615)
#11 pmsrc/src/network/mcpe/NetworkSession(434): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#56999)
#12 pmsrc/src/network/mcpe/NetworkSession(378): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#80615, string[54] [email protected]}.B..tC.............)
#13 pmsrc/src/network/mcpe/raklib/RakLibInterface(198): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[38] 3.c`b`d``........`.b....S.E.[....qf@..)
#14 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[47] .s[.....'...<.c..yw.R-.L(....?.c.!...=:...6)eF.)
#15 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#27135)
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#17 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#18 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#19 pmsrc/src/Server(1693): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712123973.9133)
#20 pmsrc/src/Server(1073): pocketmine\Server->tickProcessor()
#21 pmsrc/src/PocketMine(336): pocketmine\Server->__construct(object BaseClassLoader#5, object pocketmine\utils\MainLogger#2, string[16] /home/container/, string[24] /home/container/plugins/)
#22 pmsrc/src/PocketMine(359): pocketmine\server()
#23 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show