{"action":"created","issue":{"url":"https://api.github.com/repos/PocketMine/PocketMine-MP/issues/3972","repository_url":"https://api.github.com/repos/PocketMine/PocketMine-MP","labels_url":"https://api.github.com/repos/PocketMine/PocketMine-MP/issues/3972/labels{/name}","comments_url":"https://api.github.com/repos/PocketMine/PocketMine-MP/issues/3972/comments","events_url":"https://api.github.com/repos/PocketMine/PocketMine-MP/issues/3972/events","html_url":"https://github.com/PocketMine/PocketMine-MP/issues/3972","id":135134049,"number":3972,"title":"Assert error","user":{"login":"legoboy0215","id":12031248,"avatar_url":"https://avatars.githubusercontent.com/u/12031248?v=3","gravatar_id":"","url":"https://api.github.com/users/legoboy0215","html_url":"https://github.com/legoboy0215","followers_url":"https://api.github.com/users/legoboy0215/followers","following_url":"https://api.github.com/users/legoboy0215/following{/other_user}","gists_url":"https://api.github.com/users/legoboy0215/gists{/gist_id}","starred_url":"https://api.github.com/users/legoboy0215/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legoboy0215/subscriptions","organizations_url":"https://api.github.com/users/legoboy0215/orgs","repos_url":"https://api.github.com/users/legoboy0215/repos","events_url":"https://api.github.com/users/legoboy0215/events{/privacy}","received_events_url":"https://api.github.com/users/legoboy0215/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-20T23:29:42Z","updated_at":"2016-02-21T12:40:05Z","closed_at":null,"body":"```\r\nError: assert($this->namedtag->Item instanceof CompoundTag)\r\nFile: /src/pocketmine/entity/Item\r\nLine: 75\r\nType: error\r\n\r\nCode:\r\n[66] \t\t\t$this->pickupDelay = $this->namedtag[\"PickupDelay\"];\r\n[67] \t\t}\r\n[68] \t\tif(isset($this->namedtag->Owner)){\r\n[69] \t\t\t$this->owner = $this->namedtag[\"Owner\"];\r\n[70] \t\t}\r\n[71] \t\tif(isset($this->namedtag->Thrower)){\r\n[72] \t\t\t$this->thrower = $this->namedtag[\"Thrower\"];\r\n[73] \t\t}\r\n[74] \r\n[75] \t\tassert($this->namedtag->Item instanceof CompoundTag);\r\n[76] \r\n[77] \t\tif(!isset($this->namedtag->Item)){\r\n[78] \t\t\t$this->close();\r\n[79] \t\t\treturn;\r\n[80] \t\t}\r\n[81] \t\t$this->item = NBT::getItemHelper($this->namedtag->Item);\r\n[82] \r\n[83] \r\n[84] \t\t$this->server->getPluginManager()->callEvent(new ItemSpawnEvent($this));\r\n[85] \t}\r\n\r\nBacktrace:\r\n#0 /src/pocketmine/entity/Entity(271): pocketmine\\entity\\Item->initEntity(boolean)\r\n#1 /src/pocketmine/entity/Entity(419): pocketmine\\entity\\Entity->__construct(pocketmine\\level\\format\\mcregion\\Chunk object, pocketmine\\nbt\\tag\\CompoundTag pocketmine\\nbt\\tag\\CompoundTag{.pocketmine\\nbt\\tag\\ListTag:pocketmine\\nbt\\tag\\ListTag{.pocketmine\\nbt\\tag\\DoubleTag:976.125.pocketmine\\nbt\\tag\\DoubleTag:68.pocketmine\\nbt\\tag\\DoubleTag:-337.18657184137.}.pocketmine\\nbt\\tag\\ListTag:pocketmine\\nbt\\tag\\ListTag{.pocketmine\\nbt\\tag\\DoubleTag:0.pocketmine\\nbt\\tag\\DoubleTag:-0.pocketmine\\nbt\\tag\\DoubleTag:-8.4512717242807E-6.}.pocketmine\\nbt\\tag\\ListTag:pocketmine\\nbt\\tag\\ListTag{.pocketmine\\nbt\\tag\\FloatTag:340.86544799805.pocketmine\\nbt\\tag\\FloatTag:0.}.pocketmine\\nbt\\tag\\ShortTag:5.pocketmine\\nbt\\tag\\ShortTag:21.pocketmine\\nbt\\tag\\FloatTag:0.pocketmine\\nbt\\tag\\ShortTag:0.pocketmine\\nbt\\tag\\ShortTag:300.pocketmine\\nbt\\tag\\ByteTag:1.pocketmine\\nbt\\tag\\ByteTag:0.pocketmine\\nbt\\tag\\StringTag:Item.pocketmine\\nbt\\tag\\ShortTag:19.})\r\n#2 /src/pocketmine/level/format/generic/BaseFullChunk(148): pocketmine\\entity\\Entity::createEntity(string Item, pocketmine\\level\\format\\mcregion\\Chunk object, pocketmine\\nbt\\tag\\CompoundTag pocketmine\\nbt\\tag\\CompoundTag{.pocketmine\\nbt\\tag\\ListTag:pocketmine\\nbt\\tag\\ListTag{.pocketmine\\nbt\\tag\\DoubleTag:976.125.pocketmine\\nbt\\tag\\DoubleTag:68.pocketmine\\nbt\\tag\\DoubleTag:-337.18657184137.}.pocketmine\\nbt\\tag\\ListTag:pocketmine\\nbt\\tag\\ListTag{.pocketmine\\nbt\\tag\\DoubleTag:0.pocketmine\\nbt\\tag\\DoubleTag:-0.pocketmine\\nbt\\tag\\DoubleTag:-8.4512717242807E-6.}.pocketmine\\nbt\\tag\\ListTag:pocketmine\\nbt\\tag\\ListTag{.pocketmine\\nbt\\tag\\FloatTag:340.86544799805.pocketmine\\nbt\\tag\\FloatTag:0.}.pocketmine\\nbt\\tag\\ShortTag:5.pocketmine\\nbt\\tag\\ShortTag:21.pocketmine\\nbt\\tag\\FloatTag:0.pocketmine\\nbt\\tag\\ShortTag:0.pocketmine\\nbt\\tag\\ShortTag:300.pocketmine\\nbt\\tag\\ByteTag:1.pocketmine\\nbt\\tag\\ByteTag:0.pocketmine\\nbt\\tag\\StringTag:Item.pocketmine\\nbt\\tag\\ShortTag:19.})\r\n#3 /src/pocketmine/level/Level(2475): pocketmine\\level\\format\\generic\\BaseFullChunk->initChunk(boolean)\r\n#4 /src/pocketmine/level/Level(2149): pocketmine\\level\\Level->loadChunk(integer 61, integer -22, boolean 1)\r\n#5 /src/pocketmine/level/Level(2726): pocketmine\\level\\Level->getChunk(integer 61, integer -22, boolean 1)\r\n#6 /src/pocketmine/Player(713): pocketmine\\level\\Level->populateChunk(integer 61, integer -22)\r\n#7 /src/pocketmine/Player(1604): pocketmine\\Player->sendNextChunk(boolean)\r\n#8 /src/pocketmine/Server(2408): pocketmine\\Player->checkNetwork(boolean)\r\n#9 /src/pocketmine/Server(2149): pocketmine\\Server->tick(boolean)\r\n#10 /src/pocketmine/Server(2029): pocketmine\\Server->tickProcessor(boolean)\r\n#11 /src/pocketmine/Server(1648): pocketmine\\Server->start(boolean)\r\n#12 /src/pocketmine/PocketMine(464): pocketmine\\Server->__construct(pocketmine\\CompatibleClassLoader object, pocketmine\\utils\\MainLogger object, string phar:///root/pm/PocketMine-MP.phar/, string /root/pm/, string /root/pm/plugins/)\r\n#13 (1): require_once(string phar:///root/pm/PocketMine-MP.phar/src/pocketmine/PocketMine.php)\r\n```\r\nWhy does this happen?"},"comment":{"url":"https://api.github.com/repos/PocketMine/PocketMine-MP/issues/comments/186817245","html_url":"https://github.com/PocketMine/PocketMine-MP/issues/3972#issuecomment-186817245","issue_url":"https://api.github.com/repos/PocketMine/PocketMine-MP/issues/3972","id":186817245,"user":{"login":"legoboy0215","id":12031248,"avatar_url":"https://avatars.githubusercontent.com/u/12031248?v=3","gravatar_id":"","url":"https://api.github.com/users/legoboy0215","html_url":"https://github.com/legoboy0215","followers_url":"https://api.github.com/users/legoboy0215/followers","following_url":"https://api.github.com/users/legoboy0215/following{/other_user}","gists_url":"https://api.github.com/users/legoboy0215/gists{/gist_id}","starred_url":"https://api.github.com/users/legoboy0215/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legoboy0215/subscriptions","organizations_url":"https://api.github.com/users/legoboy0215/orgs","repos_url":"https://api.github.com/users/legoboy0215/repos","events_url":"https://api.github.com/users/legoboy0215/events{/privacy}","received_events_url":"https://api.github.com/users/legoboy0215/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T12:40:05Z","updated_at":"2016-02-21T12:40:05Z","body":"You don't. It just happens, I believe. Probably when player throws a snowball, but with code, not the real snowball."}}