We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please make sure your issue complies with these guidelines:
Server Crash
PocketMine-MP Crash Dump Sat Jan 4 16:49:46 CET 2020 Error: Call to a member function getContents() on null File: src/pocketmine/entity/Living Line: 439 Type: Error A PLUGIN WAS INVOLVED IN THIS CRASH BAD PLUGIN: PiggyCustomEnchants v2.0.3 Code: [430] /** [431] * Returns the highest level of the specified enchantment on any armour piece that the entity is currently wearing. [432] * [433] * @param int $enchantmentId [434] * [435] * @return int [436] */ [437] public function getHighestArmorEnchantmentLevel(int $enchantmentId) : int{ [438] $result = 0; [439] foreach($this->armorInventory->getContents() as $item){ [440] $result = max($result, $item->getEnchantmentLevel($enchantmentId)); [441] } [442] [443] return $result; [444] } [445] [446] /** [447] * @return ArmorInventory [448] */ [449] public function getArmorInventory() : ArmorInventory{ Backtrace: #0 src/pocketmine/entity/Living(454): pocketmine\entity\Living->getHighestArmorEnchantmentLevel(integer 1) #1 plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/enchants/armor/MoltenEnchant(41): pocketmine\entity\Living->setOnFire(integer 9) #2 src/pocketmine/scheduler/ClosureTask(57): DaPigGuy\PiggyCustomEnchants\enchants\armor\MoltenEnchant->DaPigGuy\PiggyCustomEnchants\enchants\armor\{closure}(integer 240327) #3 src/pocketmine/scheduler/TaskHandler(159): pocketmine\scheduler\ClosureTask->onRun(integer 240327) #4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 240327) #5 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 240327) #6 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 240327) #7 src/pocketmine/Server(2346): pocketmine\Server->tick() #8 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor() #9 src/pocketmine/Server(1785): pocketmine\Server->start() #10 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[10] /root/PvP/, string[18] /root/PvP/plugins/) #11 src/pocketmine/PocketMine(295): pocketmine\server() PocketMine-MP version: 3.11.2 [Protocol 389] Git commit: 4c744aacfa5513517af2bf4e0e9c46c77ceb307c-dirty uname -a: Linux pe.templehq.eu 4.15.0 #1 SMP Thu Feb 21 17:35:43 MSK 2019 x86_64 PHP Version: 7.3.8 Zend version: 3.3.8 OS : Linux, linux
The text was updated successfully, but these errors were encountered:
Closes #237, possibly fixes Molten enchantment (untested)
1d0574c
Co-authored-by: Aericio <16523741+Aericio@users.noreply.github.com>
Successfully merging a pull request may close this issue.
Please make sure your issue complies with these guidelines:
General
Server Crash
Version:
Steps to Reproduce the Issue
Extra Information
The text was updated successfully, but these errors were encountered: