You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
Hi I recently installed the latest version of PureEntitiesX from poggit and it has been crashing my server here is the latest crash dump it made, apparently it has something to do with armor points.
Hopefully you can help me to resolve this thanks !
PocketMine-MP Crash Dump Sun Apr 12 14:36:22 WEST 2020
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: PureEntitiesX v0.6.3
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{
Hi I recently installed the latest version of PureEntitiesX from poggit and it has been crashing my server here is the latest crash dump it made, apparently it has something to do with armor points.
Hopefully you can help me to resolve this thanks !
PocketMine-MP Crash Dump Sun Apr 12 14:36:22 WEST 2020
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: PureEntitiesX v0.6.3
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/Living(533): pocketmine\entity\Living->applyDamageModifiers(object pocketmine\event\entity\EntityDamageByEntityEvent)
#2 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/walking/Zombie(142): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#3 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(72): revivalpmmp\pureentities\entity\monster\walking\Zombie->attackEntity(object CortexPE\entity\mob\Pig)
#4 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(198): revivalpmmp\pureentities\entity\monster\WalkingMonster->checkAndAttackEntity(object CortexPE\entity\mob\Pig)
#5 src/pocketmine/level/Level(844): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 141530)
#6 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 141530)
#7 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 141530)
#8 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 141530, double 1586698582.553)
#9 src/pocketmine/Server(2143): pocketmine\Server->tick()
#10 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#11 src/pocketmine/Server(1584): pocketmine\Server->start()
#12 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] /home/minecraft/multicraft/servers/server103879/, string[56] /home/minecraft/multicraft/servers/server103879/plugins/)
#13 src/pocketmine/PocketMine(296): pocketmine\server()
#14 (11): require(string[108] phar:///home/minecraft/multicraft/servers/server103879/PMMP-Latest-Stable.phar/s)
PocketMine-MP version: 3.11.6 [Protocol 389]
Git commit: cb9e79b3985719671bd5cbaa7f665b04a6d33359-dirty
uname -a: Linux 8b6e6d977d95 4.19-ovh-xxxx-std-ipv6-64 #1008509 SMP Mon Dec 2 08:31:48 UTC 2019 x86_64
PHP Version: 7.3.14
Zend version: 3.3.14
OS : Linux, linux
The text was updated successfully, but these errors were encountered: