menu
#3971382 Call to a member function flagForDespawn() on null

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-03-23 14:28:47 +0000 UTC

System Information

PHP version: 7.2.21
Operating system: linux
System banner: Linux 20197d6a-c0f9-4d14-8a6f-be832611470e 4.9.0-7-amd64 #1 SMP Debian 4.9.110-1 (2018-07-05) x86_64

Error information

Warning: the CubeBox plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function flagForDespawn() on null
File: plugins/CubeBox_dev-3.phar/src/TheAz928/CubeBox/tile/CrateTile
Line: #128
Error level: Error
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
     * @param CompoundTag $nbt
*/
protected function addAdditionalSpawnData(CompoundTag $nbt): void {
$nbt->setString("id", "EnderChest");
}

public function close(): void {
parent::close();

$this->displayEntity->flagForDespawn();
}

/**
* @param bool $open
*/
public function setChestState(bool $open) : void{
$holder = $this->getBlock();

$pk = new BlockEventPacket();
$pk->x = (int) $holder->x;
#0 src/pocketmine/tile/Tile(280): TheAz928\CubeBox\tile\CrateTile->close()
#1 src/pocketmine/level/Level(867): pocketmine\tile\Tile->__destruct()
#2 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 92)
#3 src/pocketmine/Server(2443): pocketmine\level\Level->doTick(integer 92)
#4 src/pocketmine/Server(2574): pocketmine\Server->checkTickUpdates(integer 92, double 1584973727.1518)
#5 src/pocketmine/Server(2343): pocketmine\Server->tick()
#6 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1785): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 src/pocketmine/PocketMine(295): pocketmine\server()
#10 (1): require(string[64] phar:///home/container/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show