{"action":"created","issue":{"url":"https://api.github.com/repos/cuberite/cuberite/issues/2994","repository_url":"https://api.github.com/repos/cuberite/cuberite","labels_url":"https://api.github.com/repos/cuberite/cuberite/issues/2994/labels{/name}","comments_url":"https://api.github.com/repos/cuberite/cuberite/issues/2994/comments","events_url":"https://api.github.com/repos/cuberite/cuberite/issues/2994/events","html_url":"https://github.com/cuberite/cuberite/pull/2994","id":132189775,"number":2994,"title":"Rewrite mob tick code","user":{"login":"LogicParrot","id":5030488,"avatar_url":"https://avatars.githubusercontent.com/u/5030488?v=3","gravatar_id":"","url":"https://api.github.com/users/LogicParrot","html_url":"https://github.com/LogicParrot","followers_url":"https://api.github.com/users/LogicParrot/followers","following_url":"https://api.github.com/users/LogicParrot/following{/other_user}","gists_url":"https://api.github.com/users/LogicParrot/gists{/gist_id}","starred_url":"https://api.github.com/users/LogicParrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogicParrot/subscriptions","organizations_url":"https://api.github.com/users/LogicParrot/orgs","repos_url":"https://api.github.com/users/LogicParrot/repos","events_url":"https://api.github.com/users/LogicParrot/events{/privacy}","received_events_url":"https://api.github.com/users/LogicParrot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"LogicParrot","id":5030488,"avatar_url":"https://avatars.githubusercontent.com/u/5030488?v=3","gravatar_id":"","url":"https://api.github.com/users/LogicParrot","html_url":"https://github.com/LogicParrot","followers_url":"https://api.github.com/users/LogicParrot/followers","following_url":"https://api.github.com/users/LogicParrot/following{/other_user}","gists_url":"https://api.github.com/users/LogicParrot/gists{/gist_id}","starred_url":"https://api.github.com/users/LogicParrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogicParrot/subscriptions","organizations_url":"https://api.github.com/users/LogicParrot/orgs","repos_url":"https://api.github.com/users/LogicParrot/repos","events_url":"https://api.github.com/users/LogicParrot/events{/privacy}","received_events_url":"https://api.github.com/users/LogicParrot/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-02-08T16:33:36Z","updated_at":"2016-02-09T11:20:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cuberite/cuberite/pulls/2994","html_url":"https://github.com/cuberite/cuberite/pull/2994","diff_url":"https://github.com/cuberite/cuberite/pull/2994.diff","patch_url":"https://github.com/cuberite/cuberite/pull/2994.patch"},"body":"Do not merge this before #2986 is merged, because it depends on it.\r\n\r\n- I've rewritten mob tick code.\r\n- cMobCensus is no longer used.\r\n- Closes #2991\r\n- I believe the performance is better. May close #277\r\n- Solves the teleportation issue mentioned in #2993\r\n\r\nNote: Only cWorld was actually changed by this PR. The rest of the file changes are from the #2986 dependency."},"comment":{"url":"https://api.github.com/repos/cuberite/cuberite/issues/comments/181822423","html_url":"https://github.com/cuberite/cuberite/pull/2994#issuecomment-181822423","issue_url":"https://api.github.com/repos/cuberite/cuberite/issues/2994","id":181822423,"user":{"login":"LogicParrot","id":5030488,"avatar_url":"https://avatars.githubusercontent.com/u/5030488?v=3","gravatar_id":"","url":"https://api.github.com/users/LogicParrot","html_url":"https://github.com/LogicParrot","followers_url":"https://api.github.com/users/LogicParrot/followers","following_url":"https://api.github.com/users/LogicParrot/following{/other_user}","gists_url":"https://api.github.com/users/LogicParrot/gists{/gist_id}","starred_url":"https://api.github.com/users/LogicParrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogicParrot/subscriptions","organizations_url":"https://api.github.com/users/LogicParrot/orgs","repos_url":"https://api.github.com/users/LogicParrot/repos","events_url":"https://api.github.com/users/LogicParrot/events{/privacy}","received_events_url":"https://api.github.com/users/LogicParrot/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T11:20:17Z","updated_at":"2016-02-09T11:20:17Z","body":"@madmaxoft Incorrect. This assumption is in part why the current mob ticking is messed up. Depending on the client view distance, the player may be, say, 100 blocks away, making them not in m_LoadedClient, but the mob would need to track that player, so that if the player reaches the 128 blocks away mark the mob self-destructs. (vanilla mobs self-destruct at the 128 mark)."}}