menu
#3244830 Call to a member function dropItem() on null

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: None
Report date: 2019-12-02 16:56:53 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: linux
System banner: Linux fdfecc07c6cb 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64

Error information

Message: Call to a member function dropItem() on null
File: src/pocketmine/Player
Line: #3651
Error level: Error
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
		//Crafting grid must always be evacuated even if keep-inventory is true. This dumps the contents into the
//main inventory and drops the rest on the ground.
$this->doCloseInventory();

$ev = new PlayerDeathEvent($this, $this->getDrops());
$ev->call();

if(!$ev->getKeepInventory()){
foreach($ev->getDrops() as $item){
$this->level->dropItem($this, $item);
}

if($this->inventory !== null){
$this->inventory->setHeldItemIndex(0);
$this->inventory->clearAll();
}
if($this->armorInventory !== null){
$this->armorInventory->clearAll();
}
}
#0 src/pocketmine/entity/Living(639): pocketmine\Player->onDeath()
#1 src/pocketmine/Player(3636): pocketmine\entity\Living->kill()
#2 src/pocketmine/entity/Entity(1054): pocketmine\Player->kill()
#3 src/pocketmine/entity/Living(143): pocketmine\entity\Entity->setHealth(double -3)
#4 src/pocketmine/entity/Entity(999): pocketmine\entity\Living->setHealth(double -3)
#5 src/pocketmine/entity/Living(574): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByBlockEvent)
#6 src/pocketmine/Player(3734): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByBlockEvent)
#7 src/pocketmine/block/Lava(106): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByBlockEvent)
#8 src/pocketmine/entity/Entity(1831): pocketmine\block\Lava->onEntityCollide(object pocketmine\Player)
#9 src/pocketmine/entity/Entity(1112): pocketmine\entity\Entity->checkBlockCollision()
#10 src/pocketmine/entity/Living(677): pocketmine\entity\Entity->entityBaseTick(integer 1)
#11 src/pocketmine/entity/Human(681): pocketmine\entity\Living->entityBaseTick(integer 1)
#12 src/pocketmine/Player(1767): pocketmine\entity\Human->entityBaseTick(integer 1)
#13 src/pocketmine/level/Level(853): pocketmine\Player->onUpdate(integer 2271)
#14 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 2271)
#15 src/pocketmine/Server(2446): pocketmine\level\Level->doTick(integer 2271)
#16 src/pocketmine/Server(2577): pocketmine\Server->checkTickUpdates(integer 2271, double 1575305813.1873)
#17 src/pocketmine/Server(2346): pocketmine\Server->tick()
#18 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#19 src/pocketmine/Server(1784): pocketmine\Server->start()
#20 src/pocketmine/PocketMine(278): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-41710/, string[23] /home/gs-41710/plugins/)
#21 src/pocketmine/PocketMine(300): pocketmine\server()
#22 (1): require(string[94] phar:///pro/bin/mcpe/pocketmine-stable-1.12.0/PocketMine-MP.phar/src/pocketmine/)

Loaded Plugins

  • Show

Server Settings

  • Show