Closed teracube closed 6 years ago
Do not use 800 as an enchantment id
@CortexPE @NycuRO it never happened before and now it happens very often i think it's a conflict with my other plugin PiggyCustomEnchants no ? thanks
2017-12-26 [12:48:58] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\entity\EntityDamageEvent' to 'TeaSpoon v1.0.0': Index invalid or out of range on CortexPE\EventListener
2017-12-26 [12:48:58] [Server thread/CRITICAL]: RuntimeException: "Index invalid or out of range" (EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 110
2017-12-26 [12:48:58] [Server thread/DEBUG]: #0 src/pocketmine/item/Item(404): pocketmine\item\enchantment\Enchantment::getEnchantment(integer 800)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #1 TeaSpoon_dev-61.phar/src/CortexPE/Session(93): pocketmine\item\Item->getEnchantments()
2017-12-26 [12:48:58] [Server thread/DEBUG]: #2 TeaSpoon_dev-61.phar/src/CortexPE/EventListener(210): CortexPE\Session->useArmors()
2017-12-26 [12:48:58] [Server thread/DEBUG]: #3 src/pocketmine/plugin/MethodEventExecutor(38): CortexPE\EventListener->onDamage(pocketmine\event\entity\EntityDamageEvent object)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #4 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(CortexPE\EventListener object, pocketmine\event\entity\EntityDamageEvent object)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #5 src/pocketmine/plugin/PluginManager(721): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityDamageEvent object)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #6 src/pocketmine/entity/Entity(848): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityDamageEvent object)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #7 src/pocketmine/entity/Living(431): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageEvent object)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #8 src/pocketmine/Player(3600): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageEvent object)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #9 src/pocketmine/entity/Living(539): pocketmine\Player->attack(pocketmine\event\entity\EntityDamageEvent object)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #10 src/pocketmine/entity/Human(418): pocketmine\entity\Living->entityBaseTick(integer 1)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #11 src/pocketmine/Player(1666): pocketmine\entity\Human->entityBaseTick(integer 1)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #12 src/pocketmine/level/Level(751): pocketmine\Player->onUpdate(integer 246957)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #13 src/pocketmine/Server(2377): pocketmine\level\Level->doTick(integer 246957)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #14 src/pocketmine/Server(2534): pocketmine\Server->checkTickUpdates(integer 246957, double 1514288938.5089)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #15 src/pocketmine/Server(2274): pocketmine\Server->tick()
2017-12-26 [12:48:58] [Server thread/DEBUG]: #16 src/pocketmine/Server(2149): pocketmine\Server->tickProcessor()
2017-12-26 [12:48:58] [Server thread/DEBUG]: #17 src/pocketmine/Server(1737): pocketmine\Server->start()
2017-12-26 [12:48:58] [Server thread/DEBUG]: #18 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2017-12-26 [12:48:58] [Server thread/DEBUG]: #19 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)```
Steps to reproduce?
@CortexPE sorry i search how to reproduce...
another issue EntityShootBowEvent' on line 110 Could not pass event 'pocketmine\event\entity\EntityShootBowEvent' to 'TeaSpoon v1.0.0': Index invalid or out of range on CortexPE\handlers\EnchantHandler
2017-12-26 [14:30:26] [Server thread/CRITICAL]: RuntimeException: "Index invalid or out of range" (EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 110
2017-12-26 [14:30:26] [Server thread/DEBUG]: #0 src/pocketmine/item/Item(404): pocketmine\item\enchantment\Enchantment::getEnchantment(integer 313)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #1 TeaSpoon_dev-61.phar/src/CortexPE/handlers/EnchantHandler(310): pocketmine\item\Item->getEnchantments()
2017-12-26 [14:30:26] [Server thread/DEBUG]: #2 src/pocketmine/plugin/MethodEventExecutor(38): CortexPE\handlers\EnchantHandler->onShoot(pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(CortexPE\handlers\EnchantHandler object, pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginManager(721): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #5 src/pocketmine/item/Bow(73): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #6 src/pocketmine/Player(2448): pocketmine\item\Bow->onReleaseUsing(pocketmine\Player object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(149): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #12 src/pocketmine/Player(2968): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #14 vendor/pmmp/raklib/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 82.248.131.210:59486, raklib\protocol\EncapsulatedPacket object, integer 0)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(84): raklib\server\ServerHandler->handlePacket()
2017-12-26 [14:30:26] [Server thread/DEBUG]: #16 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
2017-12-26 [14:30:26] [Server thread/DEBUG]: #17 src/pocketmine/Server(2522): pocketmine\network\Network->processInterfaces()
2017-12-26 [14:30:26] [Server thread/DEBUG]: #18 src/pocketmine/Server(2274): pocketmine\Server->tick()
2017-12-26 [14:30:26] [Server thread/DEBUG]: #19 src/pocketmine/Server(2149): pocketmine\Server->tickProcessor()
2017-12-26 [14:30:26] [Server thread/DEBUG]: #20 src/pocketmine/Server(1737): pocketmine\Server->start()
2017-12-26 [14:30:26] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2017-12-26 [14:30:26] [Server thread/DEBUG]: #22 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2017-12-26 [14:30:28] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\entity\EntityShootBowEvent' to 'TeaSpoon v1.0.0': Index invalid or out of range on CortexPE\handlers\EnchantHandler
2017-12-26 [14:30:28] [Server thread/CRITICAL]: RuntimeException: "Index invalid or out of range" (EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 110
2017-12-26 [14:30:28] [Server thread/DEBUG]: #0 src/pocketmine/item/Item(404): pocketmine\item\enchantment\Enchantment::getEnchantment(integer 313)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #1 TeaSpoon_dev-61.phar/src/CortexPE/handlers/EnchantHandler(310): pocketmine\item\Item->getEnchantments()
2017-12-26 [14:30:28] [Server thread/DEBUG]: #2 src/pocketmine/plugin/MethodEventExecutor(38): CortexPE\handlers\EnchantHandler->onShoot(pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(CortexPE\handlers\EnchantHandler object, pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginManager(721): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #5 src/pocketmine/item/Bow(73): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #6 src/pocketmine/Player(2448): pocketmine\item\Bow->onReleaseUsing(pocketmine\Player object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(149): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #12 src/pocketmine/Player(2968): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #14 vendor/pmmp/raklib/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 82.248.131.210:59486, raklib\protocol\EncapsulatedPacket object, integer 0)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(84): raklib\server\ServerHandler->handlePacket()
2017-12-26 [14:30:28] [Server thread/DEBUG]: #16 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
2017-12-26 [14:30:28] [Server thread/DEBUG]: #17 src/pocketmine/Server(2522): pocketmine\network\Network->processInterfaces()
2017-12-26 [14:30:28] [Server thread/DEBUG]: #18 src/pocketmine/Server(2274): pocketmine\Server->tick()
2017-12-26 [14:30:28] [Server thread/DEBUG]: #19 src/pocketmine/Server(2149): pocketmine\Server->tickProcessor()
2017-12-26 [14:30:28] [Server thread/DEBUG]: #20 src/pocketmine/Server(1737): pocketmine\Server->start()
2017-12-26 [14:30:28] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2017-12-26 [14:30:28] [Server thread/DEBUG]: #22 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)```
PocketMine-MP version 1.7dev-551 "[REDACTED]" (API 3.0.0-ALPHA10)
TeaSpoon v1.0.0 latest version
PiggyCustomEnchants v1.1.0 latest version
@CortexPE sorry i search how to reproduce...
error getEnchantment(integer 503) error getEnchantment(integer 313)
2017-12-26 [18:35:35] [Server thread/CRITICAL]: RuntimeException: "Index invalid or out of range" (EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 110
2017-12-26 [18:35:35] [Server thread/DEBUG]: #0 src/pocketmine/item/Item(404): pocketmine\item\enchantment\Enchantment::getEnchantment(integer 503)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #1 TeaSpoon_dev-61.phar/src/CortexPE/handlers/EnchantHandler(347): pocketmine\item\Item->getEnchantments()
2017-12-26 [18:35:35] [Server thread/DEBUG]: #2 src/pocketmine/plugin/MethodEventExecutor(38): CortexPE\handlers\EnchantHandler->onMove(pocketmine\event\player\PlayerMoveEvent object)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(CortexPE\handlers\EnchantHandler object, pocketmine\event\player\PlayerMoveEvent object)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginManager(721): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerMoveEvent object)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #5 src/pocketmine/Player(1553): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerMoveEvent object)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #6 src/pocketmine/Player(1663): pocketmine\Player->processMovement(integer 1)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #7 src/pocketmine/level/Level(751): pocketmine\Player->onUpdate(integer 662537)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #8 src/pocketmine/Server(2377): pocketmine\level\Level->doTick(integer 662537)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #9 src/pocketmine/Server(2534): pocketmine\Server->checkTickUpdates(integer 662537, double 1514309735.485)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #10 src/pocketmine/Server(2274): pocketmine\Server->tick()
2017-12-26 [18:35:35] [Server thread/DEBUG]: #11 src/pocketmine/Server(2149): pocketmine\Server->tickProcessor()
2017-12-26 [18:35:35] [Server thread/DEBUG]: #12 src/pocketmine/Server(1737): pocketmine\Server->start()
2017-12-26 [18:35:35] [Server thread/DEBUG]: #13 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2017-12-26 [18:35:35] [Server thread/DEBUG]: #14 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2017-12-26 [18:35:35] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerMoveEvent' to 'TeaSpoon v1.0.0': Index invalid or out of range on CortexPE\handlers\EnchantHandler```
---------------------------------------------------------------------------
```2017-12-26 [21:50:52] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\entity\EntityShootBowEvent' to 'TeaSpoon v1.0.0': Index invalid or out of range on CortexPE\handlers\EnchantHandler
2017-12-26 [21:50:52] [Server thread/CRITICAL]: RuntimeException: "Index invalid or out of range" (EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 110
2017-12-26 [21:50:52] [Server thread/DEBUG]: #0 src/pocketmine/item/Item(404): pocketmine\item\enchantment\Enchantment::getEnchantment(integer 313)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #1 TeaSpoon_dev-61.phar/src/CortexPE/handlers/EnchantHandler(310): pocketmine\item\Item->getEnchantments()
2017-12-26 [21:50:52] [Server thread/DEBUG]: #2 src/pocketmine/plugin/MethodEventExecutor(38): CortexPE\handlers\EnchantHandler->onShoot(pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(CortexPE\handlers\EnchantHandler object, pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginManager(721): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #5 src/pocketmine/item/Bow(73): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\entity\EntityShootBowEvent object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #6 src/pocketmine/Player(2448): pocketmine\item\Bow->onReleaseUsing(pocketmine\Player object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(149): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #12 src/pocketmine/Player(2968): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #14 vendor/pmmp/raklib/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 82.248.106.48:50445, raklib\protocol\EncapsulatedPacket object, integer 0)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(84): raklib\server\ServerHandler->handlePacket()
2017-12-26 [21:50:52] [Server thread/DEBUG]: #16 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
2017-12-26 [21:50:52] [Server thread/DEBUG]: #17 src/pocketmine/Server(2522): pocketmine\network\Network->processInterfaces()
2017-12-26 [21:50:52] [Server thread/DEBUG]: #18 src/pocketmine/Server(2274): pocketmine\Server->tick()
2017-12-26 [21:50:52] [Server thread/DEBUG]: #19 src/pocketmine/Server(2149): pocketmine\Server->tickProcessor()
2017-12-26 [21:50:52] [Server thread/DEBUG]: #20 src/pocketmine/Server(1737): pocketmine\Server->start()
2017-12-26 [21:50:52] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2017-12-26 [21:50:52] [Server thread/DEBUG]: #22 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)```
confirmed, I use piggy enchants, and I get spammed with that error. I even disable register enchants
oh wait... they're not too high... PiggyCE has its own Enchantment extension class... That's why whenever TeaSpoon uses PMMP's Enchantments to get all the item's enchants, PMMP doesn't recognize it and returns an error.
welp #Blame @DaPigGuy 😂 he made his own Enchantment class instead of just using Enchantment::registerEnchantment(); (I know... I know... PiggyCE was made before that method was even added... But please update it to the better and more-compatible way of doing it 😉)
@CortexPE The reason I haven't already changed to use that function is the fact that it is limited to 256 ids.
I've found a hack to fix this issue. Will be pushing changes soon
Issue Description
2017-12-22 [18:08:21] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\entity\EntityDamageEvent' to 'TeaSpoon v1.0.0': Index invalid or out of range on CortexPE\EventListener 2017-12-22 [18:08:21] [Server thread/CRITICAL]: RuntimeException: "Index invalid or out of range" (EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 110
Steps to Reproduce
Crashdump, Backtrace or Other Files
Paste your crashdump here (if theres any)