menu
#4220335 Call to a member function setTag() on null

Submitted by PocketMine-MP 3.12.2

General information

Version: 3.12.2
Git commit: 9b6b3f50
Plugin involvement: Direct
Report date: 2020-05-23 04:27:56 +0000 UTC

System Information

PHP version: 7.3.15
Operating system: linux
System banner: Linux fdefc538-09c9-4483-9fc3-4aff9929d839 4.4.0-178-generic #208-Ubuntu SMP Sun Apr 5 23:45:10 UTC 2020 x86_64

Error information

Warning: the Minions plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function setTag() on null
File: plugins/Minions_v0.0.1.phar/src/KingOfTurkey38/Minions/Entities/FarmerEntity
Line: #226
Error level: Error
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236

protected function saveInventories()
{
$tag = new ListTag(self::TAG_CUSTOM_INVENTORY, [], NBT::TAG_Compound);
foreach ($this->customInventory->getInventory()->getContents() as $slot => $item){
if($item->getId() === Item::STAINED_GLASS) continue;
$tag->push($item->nbtSerialize($slot));
}

$this->namedtag->setTag($tag);

$tag = new ListTag(self::TAG_FUEL_INVENTORY, [], NBT::TAG_Compound);
$this->namedtag->setTag($tag);
foreach ($this->fuelInventory->getInventory()->getContents() as $slot => $item){
if($item->getId() === Item::STAINED_GLASS) continue;
$tag->push($item->nbtSerialize($slot));
}

$this->namedtag->setTag($tag);
}
#0 plugins/Minions_v0.0.1.phar/src/KingOfTurkey38/Minions/Entities/FarmerEntity(240): KingOfTurkey38\Minions\Entities\FarmerEntity->saveInventories()
#1 src/pocketmine/entity/Entity(2107): KingOfTurkey38\Minions\Entities\FarmerEntity->close()
#2 (): pocketmine\entity\Entity->__destruct()
#3 src/pocketmine/MemoryManager(273): gc_collect_cycles()
#4 src/pocketmine/MemoryManager(254): pocketmine\MemoryManager->triggerGarbageCollector()
#5 src/pocketmine/Server(2434): pocketmine\MemoryManager->check()
#6 src/pocketmine/Server(2143): pocketmine\Server->tick()
#7 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1584): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#10 src/pocketmine/PocketMine(295): pocketmine\server()
#11 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show