menu
#10624765 czechpmdevs\buildertools\blockstorage\BlockArray::addBlockAt(): Argument #4 ($fullStateId) must be of type int, null given, called in phar:///root/beta/plugins/BuilderTools.phar/src/czechpmdevs/buildertools/schematics/SchematicsManager.php on line 140

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 05:21:38 +0000 UTC
Server uptime: 0 days 0 hours 2 minutes 19 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux user 5.15.0-97-generic #107-Ubuntu SMP Wed Feb 7 13:26:48 UTC 2024 x86_64

Error information

Warning: the BuilderTools plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: czechpmdevs\buildertools\blockstorage\BlockArray::addBlockAt(): Argument #4 ($fullStateId) must be of type int, null given, called in phar:///root/beta/plugins/BuilderTools.phar/src/czechpmdevs/buildertools/schematics/SchematicsManager.php on line 140
File: plugins/BuilderTools.phar/src/czechpmdevs/buildertools/blockstorage/BlockArray
Line: #58
Type: TypeError
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
	public function addBlock(Vector3 $vector3, int $fullStateId): BlockArray {
return $this->addBlockAt($vector3->getFloorX(), $vector3->getFloorY(), $vector3->getFloorZ(), $fullStateId);
}

/**
* Adds block to the block array
*
* @return $this
*/
public function addBlockAt(int $x, int $y, int $z, int $fullStateId): BlockArray {
$this->lastHash = World::blockHash($x, $y, $z);

if($this->detectDuplicates && in_array($this->lastHash, $this->coords, true)) {
return $this;
}

$this->coords[] = $this->lastHash;
$this->blocks[] = $fullStateId;

return $this;
#0 plugins/BuilderTools.phar/src/czechpmdevs/buildertools/schematics/SchematicsManager(140): czechpmdevs\buildertools\blockstorage\BlockArray->addBlockAt(int 0, int 0, int 0, null)
#1 plugins/BuilderTools.phar/src/czechpmdevs/buildertools/session/selection/CuboidSelection(219): czechpmdevs\buildertools\schematics\SchematicsManager::createSchematic(object pocketmine\player\Player#66262, object pocketmine\math\Vector3#257544, object pocketmine\math\Vector3#394592, string[5] spawn, object Closure#305100)
#2 plugins/BuilderTools.phar/src/czechpmdevs/buildertools/commands/schematics/SchematicCommand(70): czechpmdevs\buildertools\session\selection\CuboidSelection->saveToSchematic(string[5] spawn, object Closure#305100)
#3 pmsrc/src/command/SimpleCommandMap(212): czechpmdevs\buildertools\commands\schematics\SchematicCommand->execute(object pocketmine\player\Player#66262, string[6] /schem, array[2])
#4 pmsrc/src/Server(1431): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#66262, string[19] /schem create spawn)
#5 pmsrc/src/player/Player(1516): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#66262, string[19] /schem create spawn)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(819): pocketmine\player\Player->chat(string[20] //schem create spawn)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#305009)
#8 pmsrc/src/network/mcpe/NetworkSession(456): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#237903)
#9 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#305009, string[42] M.//schem create spawn..L.+vE.N..........L)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(214): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[44] .*M.//schem create spawn..L.+vE.N..........L)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[53] ....I..Np.[.Q,.:_).`.F~.......b.p.c.v.<.u..t..W..0...)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(107): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#66999)
#13 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#15 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#17 pmsrc/src/Server(1696): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712121698.5775)
#18 pmsrc/src/Server(1066): pocketmine\Server->tickProcessor()
#19 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[11] /root/beta/, string[19] /root/beta/plugins/)
#20 pmsrc/src/PocketMine(373): pocketmine\server()
#21 pmsrc(11): require(string[55] phar:///root/beta/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show