menu
#4656584 Call to undefined method hcf\combat\entity\LogoutVillager::getItem()

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-11-21 17:36:19 +0000 UTC

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux e7a8904a-1a70-4cb9-a207-ac7d00ff5612 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the StyleCraft plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method hcf\combat\entity\LogoutVillager::getItem()
File: plugins/StyleCraft_v1.0.0-beta.phar/src/hcf/item/ItemListener
Line: #413
Error level: Error
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
        }
}

/**
* @param EntityDamageByBlockEvent $event
*/
public function onBlockDamage(EntityDamageByBlockEvent $event): void
{
$entity = $event->getEntity();
if ($entity->getItem() instanceof INetheriteTool || $entity->getItem() instanceof INetheriteArmor) {
$event->setCancelled();
if ($entity->isOnFire()) {
$entity->extinguish();
}
$entity->setGenericFlag(Entity::DATA_FLAG_FIRE_IMMUNE, true);
$entity->setFireTicks(0);
$blockUnderEntity = $entity->getLevel()->getBlock($entity->asVector3());
if ($blockUnderEntity->getId() === Block::LAVA || $blockUnderEntity->getId() === Block::STILL_LAVA) {
$entity->teleport($entity->asVector3()->add(0, 0.02, 0));
}
#0 src/pocketmine/plugin/MethodEventExecutor(42): hcf\item\ItemListener->onBlockDamage(object pocketmine\event\entity\EntityDamageByBlockEvent)
#1 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object hcf\item\ItemListener, object pocketmine\event\entity\EntityDamageByBlockEvent)
#2 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByBlockEvent)
#3 src/pocketmine/entity/Entity(933): pocketmine\event\Event->call()
#4 src/pocketmine/entity/Living(545): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByBlockEvent)
#5 plugins/StyleCraft_v1.0.0-beta.phar/src/hcf/combat/entity/LogoutVillager(78): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByBlockEvent)
#6 src/pocketmine/block/Fire(67): hcf\combat\entity\LogoutVillager->attack(object pocketmine\event\entity\EntityDamageByBlockEvent)
#7 src/pocketmine/entity/Entity(1737): pocketmine\block\Fire->onEntityCollide(object hcf\combat\entity\LogoutVillager)
#8 src/pocketmine/entity/Entity(1664): pocketmine\entity\Entity->checkBlockCollision()
#9 src/pocketmine/entity/Entity(1385): pocketmine\entity\Entity->move(double 0, double -0.0784, double 0)
#10 src/pocketmine/level/Level(852): pocketmine\entity\Entity->onUpdate(integer 21212)
#11 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 21212)
#12 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 21212)
#13 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 21212, double 1605980179.7454)
#14 src/pocketmine/Server(2154): pocketmine\Server->tick()
#15 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1588): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#18 src/pocketmine/PocketMine(304): pocketmine\server()
#19 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies