RevivalPMMP / PureEntitiesX

A Revival of the original PureEntities, a plugin which provides MobAI for PMMP - Coming back soon
GNU General Public License v3.0
166 stars 76 forks source link

Spawn Egg for Slimes causes Error: "Call to undefined method revivalpmmp\pureentities\entity\monster\JumpingMonster::loadFromNBT()" #248

Closed 95CivicSi closed 6 years ago

95CivicSi commented 6 years ago

Issue Reporting Example

This is an example of how to properly submit an issue according to the Issue Reporting Guidelines.

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: PocketMine-MP version 1.7dev-345 "[REDACTED]" (API 3.0.0-ALPHA9) Plugin Version: v0.2.8-3.alpha9 Dev#149 Where you got the plugin: https://poggit.pmmp.io/ci/RevivalPMMP/PureEntitiesX/PureEntitiesX

Optional Information

PHP version: 7.2.0RC4 Other Installed Plugins: DevTools v1.12.4, LaserBeam v0.0.1-3.alpha9, Slapper v1.3.6 OS Version: Ubuntu 16.04

Steps to reproduce the issue.

  1. Use Slime Spawn Egg
  2. Check console output or server.log

Description

When trying to use the spawn eggs for slimes, no slimes appear and the following error shows up on the console.


2017-11-03 [16:29:12] [Server thread/CRITICAL]: Error: "Call to undefined method revivalpmmp\pureentities\entity\monster\JumpingMonster::loadFromNBT()" (EXCEPTION) in "PureEntitiesX_dev-149.phar/src/revivalpmmp/pureentities/entity/monster/jumping/Slime" at line 62
2017-11-03 [16:29:12] [Server thread/DEBUG]: #0 PureEntitiesX_dev-149.phar/src/revivalpmmp/pureentities/entity/monster/jumping/Slime(43): revivalpmmp\pureentities\entity\monster\jumping\Slime->loadFromNBT()
2017-11-03 [16:29:12] [Server thread/DEBUG]: #1 src/pocketmine/entity/Entity(560): revivalpmmp\pureentities\entity\monster\jumping\Slime->initEntity()
2017-11-03 [16:29:12] [Server thread/DEBUG]: #2 PureEntitiesX_dev-149.phar/src/revivalpmmp/pureentities/entity/BaseEntity(88): pocketmine\entity\Entity->__construct(pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #3 src/pocketmine/entity/Entity(257): revivalpmmp\pureentities\entity\BaseEntity->__construct(pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #4 src/pocketmine/item/SpawnEgg(44): pocketmine\entity\Entity::createEntity(integer 37, pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #5 src/pocketmine/level/Level(1778): pocketmine\item\SpawnEgg->onActivate(pocketmine\level\Level object, pocketmine\Player object, pocketmine\block\Air object, pocketmine\block\SnowLayer object, integer 1, pocketmine\math\Vector3 object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #6 src/pocketmine/Player(2282): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\SpawnEgg object, integer 1, pocketmine\math\Vector3 object, pocketmine\Player object, boolean 1)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(149): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #12 src/pocketmine/Player(3011): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #14 src/raklib/server/ServerHandler(97): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 66.26.150.23:64625, raklib\protocol\EncapsulatedPacket object, integer 0)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(82): raklib\server\ServerHandler->handlePacket()
2017-11-03 [16:29:12] [Server thread/DEBUG]: #16 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
2017-11-03 [16:29:12] [Server thread/DEBUG]: #17 src/pocketmine/Server(2518): pocketmine\network\Network->processInterfaces()
2017-11-03 [16:29:12] [Server thread/DEBUG]: #18 src/pocketmine/Server(2274): pocketmine\Server->tick()
2017-11-03 [16:29:12] [Server thread/DEBUG]: #19 src/pocketmine/Server(2149): pocketmine\Server->tickProcessor()
2017-11-03 [16:29:12] [Server thread/DEBUG]: #20 src/pocketmine/Server(1731): pocketmine\Server->start()
2017-11-03 [16:29:12] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(564): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/fiber/1.2/PocketMine-MP.phar/, string /home/fiber/1.2/, string /home/fiber/1.2/plugins/)
2017-11-03 [16:29:12] [Server thread/DEBUG]: #22 /home/fiber/1.2/PocketMine-MP.phar(1): require(string phar:///home/fiber/1.2/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
95CivicSi commented 6 years ago

The attached file shows what the above issue looked like before it was submitted. Completed Issue Template Example.txt