ErikPDev / AdvanceDeaths

A plugin to customize the death messages!
MIT License
17 stars 6 forks source link

Crash at Lighting death #22

Closed MrBlasyMSK closed 2 years ago

MrBlasyMSK commented 2 years ago

Dev103 PHP 8.0 OS: Ubuntu Game: Win10

How to reproduce: Kill anyone


--- Stack trace ---
  #0 plugins/AdvanceDeaths_dev-103.phar/src/ErikPDev/AdvanceDeaths/effects/Lighting(20): pocketmine\network\mcpe\protocol\DataPacket->__set(string[15] entityRuntimeId, integer 3)
  #1 plugins/AdvanceDeaths_dev-103.phar/src/ErikPDev/AdvanceDeaths/Main(205): ErikPDev\AdvanceDeaths\effects\Lighting->run()
  #2 pmsrc/src/event/RegisteredListener(75): ErikPDev\AdvanceDeaths\Main->onDeath(object pocketmine\event\player\PlayerDeathEvent#129532)
  #3 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerDeathEvent#129532)
  #4 pmsrc/src/player/Player(2188): pocketmine\event\Event->call()
  #5 pmsrc/src/entity/Entity(546): pocketmine\player\Player->onDeath()
  #6 pmsrc/src/entity/Entity(584): pocketmine\entity\Entity->kill()
  #7 pmsrc/src/entity/Living(188): pocketmine\entity\Entity->setHealth(double -980)
  #8 pmsrc/src/entity/Entity(531): pocketmine\entity\Living->setHealth(double -980)
  #9 pmsrc/src/entity/Living(517): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageEvent#129529)
  #10 pmsrc/src/player/Player(2306): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageEvent#129529)
  #11 pmsrc/src/command/defaults/KillCommand(80): pocketmine\player\Player->attack(object pocketmine\event\entity\EntityDamageEvent#129529)
  #12 pmsrc/src/command/SimpleCommandMap(220): pocketmine\command\defaults\KillCommand->execute(object pocketmine\player\Player#106617, string[4] kill, array[0])
  #13 pmsrc/src/Server(1408): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#106617, string[4] kill)
  #14 pmsrc/src/player/Player(1383): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#106617, string[4] kill)
  #15 pmsrc/src/network/mcpe/handler/InGamePacketHandler(754): pocketmine\player\Player->chat(string[5] /kill)
  #16 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#129514)
  #17 pmsrc/src/network/mcpe/NetworkSession(397): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#117945)
  #18 pmsrc/src/network/mcpe/NetworkSession(360): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#129514, string[26] M./kill..K......$G).HFk...)
  #19 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[30] ..e.....a..^{z..9.T.5.{.e.f`..)
  #20 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[39] ....?./mO.q..V..B..-.[...l...5.45.g..Q.)
  #21 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#107113)
  #22 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
  #23 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
  #24 pmsrc/src/Server(1660): pocketmine\snooze\SleeperHandler->sleepUntil(double 1647295849.2925)
  #25 pmsrc/src/Server(1046): pocketmine\Server->tickProcessor()
  #26 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
  #27 pmsrc/src/PocketMine(327): pocketmine\server()
  #28 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)```
ErikPDev commented 2 years ago

This is a known issue that's fixed on the latest dev build, an easy fix for now is to change lighting to creeper.