Error: Call to a member function getContents() on null
File: src/pocketmine/entity/Living
Line: 407
Type: Error
A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: BossPlugin v3.21
Code:
[398] }
[399]
[400] /
[401] Returns how many armour points this mob has. Armour points provide a percentage reduction to damage.
[402] For mobs which can wear armour, this should return the sum total of the armour points provided by their
[403] equipment.
[404] /
[405] public function getArmorPoints() : int{
[406] $total = 0;
[407] foreach($this->armorInventory->getContents() as $item){
[408] $total += $item->getDefensePoints();
[409] }
[410]
[411] return $total;
[412] }
[413]
[414] /
[415] Returns the highest level of the specified enchantment on any armour piece that the entity is currently wearing.
[416] /
[417] public function getHighestArmorEnchantmentLevel(int $enchantmentId) : int{
Error: Call to a member function getContents() on null File: src/pocketmine/entity/Living Line: 407 Type: Error
A PLUGIN WAS INVOLVED IN THIS CRASH BAD PLUGIN: BossPlugin v3.21
Code: [398] } [399] [400] / [401] Returns how many armour points this mob has. Armour points provide a percentage reduction to damage. [402] For mobs which can wear armour, this should return the sum total of the armour points provided by their [403] equipment. [404] / [405] public function getArmorPoints() : int{ [406] $total = 0; [407] foreach($this->armorInventory->getContents() as $item){ [408] $total += $item->getDefensePoints(); [409] } [410] [411] return $total; [412] } [413] [414] / [415] Returns the highest level of the specified enchantment on any armour piece that the entity is currently wearing. [416] / [417] public function getHighestArmorEnchantmentLevel(int $enchantmentId) : int{
Backtrace:
0 src/pocketmine/entity/Living(441): pocketmine\entity\Living->getArmorPoints()
1 src/pocketmine/entity/Human(683): pocketmine\entity\Living->applyDamageModifiers(object pocketmine\event\entity\EntityDamageByEntityEvent)
2 src/pocketmine/entity/Living(533): pocketmine\entity\Human->applyDamageModifiers(object pocketmine\event\entity\EntityDamageByEntityEvent)
3 src/pocketmine/Player(3686): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
4 plugins/BossPlugin.phar/src/hmmhmmmm/boss/entity/walk/BossSpider(36): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
5 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(72): hmmhmmmm\boss\entity\walk\BossSpider->attackEntity(object pocketmine\Player)
6 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(198): revivalpmmp\pureentities\entity\monster\WalkingMonster->checkAndAttackEntity(object pocketmine\Player)
7 src/pocketmine/level/Level(844): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 137193)
8 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 137193)
9 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 137193)
10 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 137193, double 1585691798.519)
11 src/pocketmine/Server(2143): pocketmine\Server->tick()
12 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
13 src/pocketmine/Server(1584): pocketmine\Server->start()
14 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/mcserver/, string[23] /home/mcserver/plugins/)
15 src/pocketmine/PocketMine(296): pocketmine\server()
16 (11): require(string[70] phar:///home/mcserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 3.11.6 [Protocol 389]