Skip to content
New issue

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

Call to undefined method pocketmine\item\Pickaxe::isPickaxe() #160

Closed
teracube opened this issue May 13, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@teracube
Copy link

commented May 13, 2018

Please make sure your issue complies with these guidelines:

    • Server Software must be the official PMMP w/o vanilla patching plugins (i.e. TeaSpoon)
    • Issue must have not been reported previously
    • Make sure you are on the latest version of PMMP & PiggyCustomEnchants
    • Have a detailed title, like "CustomEnchants::getName() must be..."
    • If possible, provide crashdumps/errors related to the issue.

General

Version:

  • PiggyCustomEnchants:
    PiggyCustomEnchants_dev-222.phar
  • PMMP:
    PocketMine-MP version 1.7dev-990 "[REDACTED]" (API 3.0.0-ALPHA12)

Steps to Reproduce the Issue

  1. PocketMine-MP version 1.7dev-990 "[REDACTED]" (API 3.0.0-ALPHA12)
    PiggyCustomEnchants_dev-222.phar
    sorry ????

Extra Information

2018-05-13 [11:24:31] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\item\Pickaxe::isPickaxe()" (EXCEPTION) in "PiggyCustomEnchants_dev-222.phar/src/PiggyCustomEnchants/Blocks/PiggyObsidian" at line 90
2018-05-13 [11:24:31] [Server thread/DEBUG]: #0 src/pocketmine/level/Level(1669): PiggyCustomEnchants\Blocks\PiggyObsidian->getDrops(pocketmine\item\Pickaxe object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #1 (): pocketmine\level\Level->pocketmine\level\{closure}(PiggyCustomEnchants\Blocks\PiggyObsidian object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #2 src/pocketmine/level/Level(1669): array_map(Closure object, array Array())
2018-05-13 [11:24:31] [Server thread/DEBUG]: #3 src/pocketmine/Player(2399): pocketmine\level\Level->useBreakOn(pocketmine\math\Vector3 object, pocketmine\item\Pickaxe object, pocketmine\Player object, boolean 1)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #5 TeaSpoon_dev-186.phar/src/CortexPE/network/InventoryTransactionPacket(155): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #9 src/pocketmine/Player(3028): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/RakLibInterface(158): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #11 vendor/pocketmine/raklib/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 94.xxx.xxx.228 65145, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
2018-05-13 [11:24:31] [Server thread/DEBUG]: #13 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-05-13 [11:24:31] [Server thread/DEBUG]: #14 src/pocketmine/network/Network(88): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #15 src/pocketmine/Server(2500): pocketmine\network\Network->processInterfaces()
2018-05-13 [11:24:31] [Server thread/DEBUG]: #16 src/pocketmine/Server(2255): pocketmine\Server->tick()
2018-05-13 [11:24:31] [Server thread/DEBUG]: #17 src/pocketmine/Server(2129): pocketmine\Server->tickProcessor()
2018-05-13 [11:24:31] [Server thread/DEBUG]: #18 src/pocketmine/Server(1712): pocketmine\Server->start()
2018-05-13 [11:24:31] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(304): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/, string /home/gsp_1485/plugins/)
2018-05-13 [11:24:31] [Server thread/DEBUG]: #20 /home/gsp_1485/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-05-13 [09:24:31] [RakLibServer thread/NOTICE]: Blocked 94.xxx.xxx.228 for 5 seconds
@teracube

This comment has been minimized.

Copy link
Author

commented May 15, 2018

@DaPigGuy
not fixed with
PiggyCustomEnchants_dev-225.phar
PocketMine-MP version 1.7dev-990 "[REDACTED]" (API 3.0.0-ALPHA12)

need to use latest PMMP build ?

2018-05-15 [15:59:25] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\item\Pickaxe::isPickaxe()" (EXCEPTION) in "PiggyCustomEnchants_dev-225.phar/src/PiggyCustomEnchants/Blocks/PiggyObsidian" at line 90
2018-05-15 [15:59:25] [Server thread/DEBUG]: #0 src/pocketmine/level/Level(1669): PiggyCustomEnchants\Blocks\PiggyObsidian->getDrops(pocketmine\item\Pickaxe object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #1 (): pocketmine\level\Level->pocketmine\level\{closure}(PiggyCustomEnchants\Blocks\PiggyObsidian object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #2 src/pocketmine/level/Level(1669): array_map(Closure object, array Array())
2018-05-15 [15:59:25] [Server thread/DEBUG]: #3 src/pocketmine/Player(2399): pocketmine\level\Level->useBreakOn(pocketmine\math\Vector3 object, pocketmine\item\Pickaxe object, pocketmine\Player object, boolean 1)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #5 TeaSpoon_dev-186.phar/src/CortexPE/network/InventoryTransactionPacket(155): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #9 src/pocketmine/Player(3028): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/RakLibInterface(158): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #11 vendor/pocketmine/raklib/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 213.xxx.124.211 55893, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
2018-05-15 [15:59:25] [Server thread/DEBUG]: #13 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-05-15 [15:59:25] [Server thread/DEBUG]: #14 src/pocketmine/network/Network(88): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #15 src/pocketmine/Server(2500): pocketmine\network\Network->processInterfaces()
2018-05-15 [15:59:25] [Server thread/DEBUG]: #16 src/pocketmine/Server(2255): pocketmine\Server->tick()
2018-05-15 [15:59:25] [Server thread/DEBUG]: #17 src/pocketmine/Server(2129): pocketmine\Server->tickProcessor()
2018-05-15 [15:59:25] [Server thread/DEBUG]: #18 src/pocketmine/Server(1712): pocketmine\Server->start()
2018-05-15 [15:59:25] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(304): 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/)
2018-05-15 [15:59:25] [Server thread/DEBUG]: #20 /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)
2018-05-15 [13:59:25] [RakLibServer thread/NOTICE]: Blocked 213.xxx.124.211 for 5 seconds

DaPigGuy added a commit that referenced this issue May 17, 2018

DaPigGuy added a commit that referenced this issue May 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.