1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

TypeError: "Argument 1 passed to pocketmine\event\block\BlockBreakEvent::setDropsVariadic() must be

Discussion in 'Help' started by TeraCube, Dec 31, 2017.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    PMMP latest build issue or plugin issue ?
    happy new year ;-)


    PocketMine-MP_1.7dev-565_1e896eff_API-3.0.0-ALPHA10.phar
    + 10 plugins

    Code:
    2017-12-31 [10:36:28] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\event\block\BlockBreakEvent::setDropsVariadic() must be an instance of pocketmine\item\Item, array given, called in phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/event/block/BlockBreakEvent.php on line 105" (EXCEPTION) in "src/pocketmine/event/block/BlockBreakEvent" at line 113
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #0 src/pocketmine/event/block/BlockBreakEvent(105): pocketmine\event\block\BlockBreakEvent->setDropsVariadic(array Array())
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #1 src/pocketmine/event/block/BlockBreakEvent(56): pocketmine\event\block\BlockBreakEvent->setDrops(array Array())
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #2 src/pocketmine/level/Level(1734): pocketmine\event\block\BlockBreakEvent->__construct(pocketmine\Player object, CortexPE\block\Obsidian object, pocketmine\item\Pickaxe object, boolean )
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #3 src/pocketmine/Player(2315): pocketmine\level\Level->useBreakOn(pocketmine\math\Vector3 object, pocketmine\item\Pickaxe object, pocketmine\Player object, boolean 1)
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(149): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #9 src/pocketmine/Player(2966): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #11 vendor/pmmp/raklib/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 78.249.xxx.22:54429, raklib\protocol\EncapsulatedPacket object, integer 0)
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(84): raklib\server\ServerHandler->handlePacket()
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #13 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #14 src/pocketmine/Server(2523): pocketmine\network\Network->processInterfaces()
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #15 src/pocketmine/Server(2275): pocketmine\Server->tick()
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #16 src/pocketmine/Server(2150): pocketmine\Server->tickProcessor()
    2017-12-31 [10:36:28] [Server thread/DEBUG]: #17 src/pocketmine/Server(1738): pocketmine\Server->start()
    2017-12-31 [10:36:28] [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-31 [10:36:28] [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)
    2017-12-31 [10:36:28] [RakLibServer thread/NOTICE]: Blocked 78.249.xxx.22 for 5 seconds
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Show what plugins are you using
     
  3. Destroyer57

    Destroyer57 Zombie

    Messages:
    275
    Its not a plugin issue. Seems like crash while breaking an Obsidian block
     
  4. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Plugin issue: The Obsidian class of TeaSpoon caused this crash.
    (Hint: It's because of a multidimensional array where there shouldn't be one.)
     
    SOFe, HimbeersaftLP and Sandertv like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.