diamond-gold / MiniBosses

🐲 Endless possibilities with highly customizable bosses!
https://poggit.pmmp.io/p/MiniBosses
GNU Affero General Public License v3.0
53 stars 27 forks source link

ArgumentCountError: "Too few arguments to function pocketmine\network\mcpe\protocol\types\entity\Attribute::__construct() #34

Closed YT-Duckyyy closed 2 years ago

YT-Duckyyy commented 2 years ago
[22:33:20.006] [Server thread/CRITICAL]: ArgumentCountError: "Too few arguments to function pocketmine\network\mcpe\protocol\types\entity\Attribute::__construct(), 5 passed in phar:///home/container/plugins/MiniBosses.phar/src/diamondgold/MiniBosses/Boss.php on line 516 and exactly 6 expected" (EXCEPTION) in "pmsrc/vendor/pocketmine/bedrock-protocol/src/types/entity/Attribute" at line 29
--- Stack trace ---
  #0 plugins/MiniBosses.phar/src/diamondgold/MiniBosses/Boss(516): pocketmine\network\mcpe\protocol\types\entity\Attribute->__construct(string[16] minecraft:health, float 0, float 1000, float 1000, float 1000)
  #1 (): diamondgold\MiniBosses\Boss->diamondgold\MiniBosses\{closure}(object pocketmine\entity\Attribute#135130)
  #2 plugins/MiniBosses.phar/src/diamondgold/MiniBosses/Boss(517): array_map(object Closure#203955, array[6])
  #3 pmsrc/src/entity/Entity(1484): diamondgold\MiniBosses\Boss->sendSpawnPacket(object ipad54\netherblocks\player\Player#127818)
  #4 pmsrc/src/player/Player(727): pocketmine\entity\Entity->spawnTo(object ipad54\netherblocks\player\Player#127818)
  #5 pmsrc/src/player/Player(719): pocketmine\player\Player->spawnEntitiesOnChunk(int 16, int 16)
  #6 pmsrc/src/player/Player(786): pocketmine\player\Player->spawnEntitiesOnAllChunks()
  #7 pmsrc/src/network/mcpe/NetworkSession(963): pocketmine\player\Player->pocketmine\player\{closure}()
  #8 pmsrc/src/network/mcpe/compression/CompressBatchPromise(64): pocketmine\network\mcpe\NetworkSession->pocketmine\network\mcpe\{closure}(object pocketmine\network\mcpe\compression\CompressBatchPromise#202620)
  #9 pmsrc/src/network/mcpe/ChunkRequestTask(92): pocketmine\network\mcpe\compression\CompressBatchPromise->resolve(string[287] .#g%....U..............7............a....@}..."'..).E.....s.X@..'..-...tX..@..I.)
  #10 pmsrc/src/scheduler/AsyncPool(268): pocketmine\network\mcpe\ChunkRequestTask->onCompletion()
  #11 pmsrc/src/scheduler/AsyncPool(140): pocketmine\scheduler\AsyncPool->collectTasksFromWorker(int 4)
  #12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\scheduler\AsyncPool->pocketmine\scheduler\{closure}()
  #13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
  #14 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1660516399.4471)
  #15 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
  #16 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
  #17 pmsrc/src/PocketMine(327): pocketmine\server()
  #18 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---

Version information PocketMine: 4.7.0 Plugin: 3.2.1 Minecraft: 1.19.20

Additional context Add any other context about the problem here.

diamond-gold commented 2 years ago

Fixed in v3.2.2