{"action":"created","issue":{"url":"https://api.github.com/repos/PrismarineJS/prismarine-world/issues/13","labels_url":"https://api.github.com/repos/PrismarineJS/prismarine-world/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/PrismarineJS/prismarine-world/issues/13/comments","events_url":"https://api.github.com/repos/PrismarineJS/prismarine-world/issues/13/events","html_url":"https://github.com/PrismarineJS/prismarine-world/pull/13","id":111909205,"number":13,"title":"Push world to generator function","user":{"login":"JWo1F","id":1540715,"avatar_url":"https://avatars.githubusercontent.com/u/1540715?v=3","gravatar_id":"","url":"https://api.github.com/users/JWo1F","html_url":"https://github.com/JWo1F","followers_url":"https://api.github.com/users/JWo1F/followers","following_url":"https://api.github.com/users/JWo1F/following{/other_user}","gists_url":"https://api.github.com/users/JWo1F/gists{/gist_id}","starred_url":"https://api.github.com/users/JWo1F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JWo1F/subscriptions","organizations_url":"https://api.github.com/users/JWo1F/orgs","repos_url":"https://api.github.com/users/JWo1F/repos","events_url":"https://api.github.com/users/JWo1F/events{/privacy}","received_events_url":"https://api.github.com/users/JWo1F/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-16T20:53:05Z","updated_at":"2015-10-16T21:32:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PrismarineJS/prismarine-world/pulls/13","html_url":"https://github.com/PrismarineJS/prismarine-world/pull/13","diff_url":"https://github.com/PrismarineJS/prismarine-world/pull/13.diff","patch_url":"https://github.com/PrismarineJS/prismarine-world/pull/13.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/PrismarineJS/prismarine-world/issues/comments/148841589","html_url":"https://github.com/PrismarineJS/prismarine-world/pull/13#issuecomment-148841589","issue_url":"https://api.github.com/repos/PrismarineJS/prismarine-world/issues/13","id":148841589,"user":{"login":"rom1504","id":2346494,"avatar_url":"https://avatars.githubusercontent.com/u/2346494?v=3","gravatar_id":"","url":"https://api.github.com/users/rom1504","html_url":"https://github.com/rom1504","followers_url":"https://api.github.com/users/rom1504/followers","following_url":"https://api.github.com/users/rom1504/following{/other_user}","gists_url":"https://api.github.com/users/rom1504/gists{/gist_id}","starred_url":"https://api.github.com/users/rom1504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom1504/subscriptions","organizations_url":"https://api.github.com/users/rom1504/orgs","repos_url":"https://api.github.com/users/rom1504/repos","events_url":"https://api.github.com/users/rom1504/events{/privacy}","received_events_url":"https://api.github.com/users/rom1504/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T21:32:30Z","updated_at":"2015-10-16T21:32:30Z","body":"This is not correct and not enough.\r\na (world,chunkX,chunkZ) -> promise API might be interesting.\r\nBut the problem is it would mean 2 generation function can run \"at the same time\" which might be bad.\r\nFor example if the generation function is called at 3,4 and also put stuff at 3,3, and before its executed is over it is called at 3,3, then both function are going to try to put stuff at 3,3 which might result in unexpected results.\r\nShould we trust the generator to have a lock mechanism ? should we try to handle that ourselves in prismarine-world ?\r\nIt does make things more complex anyway. Maybe there is a better way to do this."}}