Crash using PE with BP
Willoxey opened this issue · 1 comments
Willoxey commented
https://github.com/RevivalPMMP/PureEntitiesX/wiki/Issue-Reporting-Guidelines
If you do not follow the guidelines at the above link, your issue will be closed with a Resolution Status of "Invalid".
Required Information
__PocketMine-MP Version: 3.12.5
Plugin Version: 0.6.6-DivZero
Where you got the plugin: Discord from civic
Optional Information
__PHP version: 7.3.14
Other Installed Plugins:
__OS Version: Linux(Host)
Steps to reproduce the issue.
- Install BlockPets(i cant send you a copy of that in Discord)
- Restart
- Go where are the mobs and in some seconds it will give you crash
...
Description
Having issues with BlockPets having PureEntities installed. Server crash
Error: Tag with name "petOwner" not found and no valid default value given
File: vendor/pocketmine/nbt/src/tag/CompoundTag
Line: 193
Type: RuntimeException
A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: BlockPets v1.1.2
Code:
[184] * @return mixed
[185] */
[186] public function getTagValue(string $name, string $expectedClass, $default = null, bool $badTagDefault = false){
[187] $tag = $this->getTag($name, $badTagDefault ? NamedTag::class : $expectedClass);
[188] if($tag instanceof $expectedClass){
[189] return $tag->getValue();
[190] }
[191]
[192] if($default === null){
[193] throw new \RuntimeException("Tag with name \"$name\" " . ($tag !== null ? "not of expected type" : "not found") . " and no valid default value given");
[194] }
[195]
[196] return $default;
[197] }
[198]
[199] /*
[200] * The following methods are wrappers around getTagValue() with type safety.
[201] */
[202]
[203] /**
Backtrace:
#0 vendor/pocketmine/nbt/src/tag/CompoundTag(288): pocketmine\nbt\tag\CompoundTag->getTagValue(string[8] petOwner, string[28] pocketmine\nbt\tag\StringTag, NULL , boolean )
#1 plugins/BlockPets fix.phar/src/BlockHorizons/BlockPets/pets/BasePet(110): pocketmine\nbt\tag\CompoundTag->getString(string[8] petOwner)
#2 plugins/BlockPets fix.phar/src/BlockHorizons/BlockPets/pets/IrasciblePet(28): BlockHorizons\BlockPets\pets\BasePet->__construct(object pocketmine\level\Level, object pocketmine\nbt\tag\CompoundTag)
#3 src/pocketmine/entity/Entity(377): BlockHorizons\BlockPets\pets\IrasciblePet->__construct(object pocketmine\level\Level, object pocketmine\nbt\tag\CompoundTag)
#4 plugins/PureEntitiesX (1).phar/src/revivalpmmp/pureentities/PureEntities(267): pocketmine\entity\Entity::createEntity(integer 34, object pocketmine\level\Level, object pocketmine\nbt\tag\CompoundTag)
#5 plugins/PureEntitiesX (1).phar/src/revivalpmmp/pureentities/PureEntities(286): revivalpmmp\pureentities\PureEntities::create(integer 34, object pocketmine\level\Position)
#6 plugins/PureEntitiesX (1).phar/src/revivalpmmp/pureentities/task/AutoSpawnTask(229): revivalpmmp\pureentities\PureEntities->scheduleCreatureSpawn(object pocketmine\level\Position, integer 34, object pocketmine\level\Level, string[7] hostile, boolean )
#7 plugins/PureEntitiesX (1).phar/src/revivalpmmp/pureentities/task/AutoSpawnTask(290): revivalpmmp\pureentities\task\AutoSpawnTask->spawnPackToLevel(object pocketmine\math\Vector3, integer 34, object pocketmine\level\Level, string[7] hostile)
#8 plugins/PureEntitiesX (1).phar/src/revivalpmmp/pureentities/task/AutoSpawnTask(116): revivalpmmp\pureentities\task\AutoSpawnTask->spawnHostileMob(object pocketmine\level\format\Chunk, object pocketmine\level\Level)
#9 src/pocketmine/scheduler/TaskHandler(134): revivalpmmp\pureentities\task\AutoSpawnTask->onRun(integer 2401)
#10 src/pocketmine/scheduler/TaskScheduler(176): pocketmine\scheduler\TaskHandler->run(integer 2401)
#11 src/pocketmine/plugin/PluginManager(643): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 2401)
#12 src/pocketmine/Server(2380): pocketmine\plugin\PluginManager->tickSchedulers(integer 2401)
#13 src/pocketmine/Server(2143): pocketmine\Server->tick()
#14 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#15 src/pocketmine/Server(1584): pocketmine\Server->start()
#16 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] /home/minecraft/multicraft/servers/server136912/, string[56] /home/minecraft/multicraft/servers/server136912/plugins/)
#17 src/pocketmine/PocketMine(295): pocketmine\server()
#18 (11): require(string[103] phar:///home/minecraft/multicraft/servers/server136912/custom-php7.3.phar/src/po)
[console.txt](https://github.com/RevivalPMMP/PureEntitiesX/files/4777389/console.txt)
95CivicSi commented
This is not an issue with PureEntitiesX. You will need to have someone update/fix your copy of BlockPets to resolve this issue.