menu
#3547610 Tag with name "val" not found and no valid default value given

Submitted by PocketMine-MP 4.0.0+dev

General information

Version: 4.0.0+dev
Git commit: 0e1cea04
Plugin involvement: None
Report date: 2020-01-13 19:57:54 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: linux
System banner: Linux iZj6cfvagw2ye74xhsk9q6Z1 4.19.0-7-amd64 #1 SMP Debian 4.19.87-1 (2019-12-03) x86_64

Error information

Message: Tag with name "val" not found and no valid default value given
File: vendor/pocketmine/nbt/src/tag/CompoundTag
Line: #194
Error level: RuntimeException
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
	 * @return mixed
*/
public function getTagValue(string $name, string $expectedClass, $default = null, bool $badTagDefault = false){
$tag = $this->getTag($name, $badTagDefault ? Tag::class : $expectedClass);
if($tag instanceof $expectedClass){
return $tag->getValue();
}

if($default === null){
throw new \RuntimeException("Tag with name \"$name\" " . ($tag !== null ? "not of expected type" : "not found") . " and no valid default value given");
}

return $default;
}

/*
* The following methods are wrappers around getTagValue() with type safety.
*/

/**
#0 vendor/pocketmine/nbt/src/tag/CompoundTag(223): pocketmine\nbt\tag\CompoundTag->getTagValue(string[3] val, string[27] pocketmine\nbt\tag\ShortTag, NULL , boolean )
#1 src/world/format/io/leveldb/LevelDB(179): pocketmine\nbt\tag\CompoundTag->getShort(string[3] val)
#2 src/world/format/io/leveldb/LevelDB(329): pocketmine\world\format\io\leveldb\LevelDB->deserializePaletted(object pocketmine\utils\BinaryStream)
#3 src/world/format/io/BaseWorldProvider(74): pocketmine\world\format\io\leveldb\LevelDB->readChunk(integer -2, integer 12)
#4 src/world/World(2367): pocketmine\world\format\io\BaseWorldProvider->loadChunk(integer -2, integer 12)
#5 src/world/World(599): pocketmine\world\World->loadChunk(integer -2, integer 12)
#6 src/player/Player(293): pocketmine\world\World->registerChunkLoader(object pocketmine\player\Player, integer -2, integer 12, boolean 1)
#7 src/network/mcpe/NetworkSession(186): pocketmine\player\Player->__construct(object pocketmine\Server, object pocketmine\network\mcpe\NetworkSession, object pocketmine\player\PlayerInfo, boolean 1)
#8 src/network/mcpe/NetworkSession(597): pocketmine\network\mcpe\NetworkSession->createPlayer()
#9 src/network/mcpe/handler/ResourcePacksPacketHandler(128): pocketmine\network\mcpe\NetworkSession->onResourcePacksDone()
#10 src/network/mcpe/protocol/ResourcePackClientResponsePacket(62): pocketmine\network\mcpe\handler\ResourcePacksPacketHandler->handleResourcePackClientResponse(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket)
#11 src/network/mcpe/NetworkSession(351): pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket->handle(object pocketmine\network\mcpe\handler\ResourcePacksPacketHandler)
#12 src/network/mcpe/NetworkSession(317): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket)
#13 src/network/mcpe/raklib/RakLibInterface(152): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[13] x.c.`a`...E..)
#14 vendor/pocketmine/raklib/src/server/ServerHandler(102): pocketmine\network\mcpe\raklib\RakLibInterface->handleEncapsulated(integer 0, object raklib\protocol\EncapsulatedPacket, integer 0)
#15 src/network/mcpe/raklib/RakLibInterface(96): raklib\server\ServerHandler->handlePacket()
#16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#18 src/Server(1762): pocketmine\snooze\SleeperHandler->sleepUntil(double 1578945474.56)
#19 src/Server(1309): pocketmine\Server->tickProcessor()
#20 src/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[9] /root/pm/, string[17] /root/pm/plugins/)
#21 src/PocketMine(297): pocketmine\server()
#22 (1): require(string[53] phar:///root/pm/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show