menu
#10626769 Call to undefined method pocketmine\block\MonsterSpawner::getLegacyEntityId()

Submitted by PocketMine-MP 5.10.0

General information

Version: 5.10.0
Git commit: daeba951
Plugin involvement: Direct
Report date: 2024-04-03 06:36:44 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 38 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux ec0c774a-3c95-48fa-854d-9c0fb9f60790 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64

Error information

Warning: the LuckySpawners plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined method pocketmine\block\MonsterSpawner::getLegacyEntityId()
File: plugins/SakuraSpawners/src/Peak/EventListener
Line: #61
Type: Error
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
        }

if(!($item = $event->getItem()) instanceof ItemBlock){
return;
}
$block = $event->getBlockAgainst();
$placing = $item->getBlock();
if ($placing instanceof MonsterSpawner) {
if ($block instanceof $placing) {
if ($block->getLegacyEntityId() == SpawnerItems::getSpawnerEntityId($item)) {
$amountInStack = 1;
if (($player = $event->getPlayer())->isSneaking()) {
$amountInStack = $item->getCount();
$item->pop($amountInStack);
$block->setStackAmount($block->getStackAmount() + $amountInStack);
} else {
$item->pop($amountInStack);
$block->setStackAmount($block->getStackAmount() + $amountInStack);
}
$player->sendJukeboxPopup("Stacked: " . $amountInStack . " | Total: " . $block->getStackAmount());
#0 pmsrc/src/event/RegisteredListener(61): Peak\EventListener->onPlace(object pocketmine\event\block\BlockPlaceEvent#187969)
#1 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\block\BlockPlaceEvent#187969)
#2 pmsrc/src/world/World(2250): pocketmine\event\Event->call()
#3 pmsrc/src/player/Player(1816): pocketmine\world\World->useItemOn(object pocketmine\math\Vector3#187884, object pocketmine\item\ItemBlock#104305, int 2, object pocketmine\math\Vector3#101335, object pocketmine\player\Player#180268, true, array[0])
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(489): pocketmine\player\Player->interactBlock(object pocketmine\math\Vector3#187884, int 2, object pocketmine\math\Vector3#99383)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(342): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#116246)
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(94): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#188296)
#7 pmsrc/src/network/mcpe/NetworkSession(448): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#101649)
#8 pmsrc/src/network/mcpe/NetworkSession(386): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#188296, string[304] ............h3.....N.........SpawnerEntityId.......display...Name....r..eChicken)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[198] .Sa.......H.bfa.ab..$w\.Q.......#...........\.........y.E.y%.%..)@A..v.......J..)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[207] .;..RQ<.C.V...!v.<...O....oh.".l.7.S,..)...f.i=..h..O.Q..}....u.n..........lb...)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#197783)
#12 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#14 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#16 pmsrc/src/Server(1690): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712126204.8846)
#17 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#18 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#19 pmsrc/src/PocketMine(364): pocketmine\server()
#20 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show