{"action":"created","issue":{"url":"https://api.github.com/repos/p3lim-wow/LibProcessable/issues/5","labels_url":"https://api.github.com/repos/p3lim-wow/LibProcessable/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/p3lim-wow/LibProcessable/issues/5/comments","events_url":"https://api.github.com/repos/p3lim-wow/LibProcessable/issues/5/events","html_url":"https://github.com/p3lim-wow/LibProcessable/issues/5","id":60001127,"number":5,"title":"[Bug] enchantingBuilding is always false on PLAYER_LOGIN","user":{"login":"Blazeflack","id":495947,"avatar_url":"https://avatars.githubusercontent.com/u/495947?v=3","gravatar_id":"","url":"https://api.github.com/users/Blazeflack","html_url":"https://github.com/Blazeflack","followers_url":"https://api.github.com/users/Blazeflack/followers","following_url":"https://api.github.com/users/Blazeflack/following{/other_user}","gists_url":"https://api.github.com/users/Blazeflack/gists{/gist_id}","starred_url":"https://api.github.com/users/Blazeflack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Blazeflack/subscriptions","organizations_url":"https://api.github.com/users/Blazeflack/orgs","repos_url":"https://api.github.com/users/Blazeflack/repos","events_url":"https://api.github.com/users/Blazeflack/events{/privacy}","received_events_url":"https://api.github.com/users/Blazeflack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-05T19:17:32Z","updated_at":"2015-03-05T20:26:53Z","closed_at":null,"body":"Version: 6\r\nAll other addons disabled: Yes.\r\n\r\nFor some reason it is not possible to iterate over C_Garrison.GetBuildings() on the PLAYER_LOGIN event. By adding print statements I've verified that C_Garrison.GetBuildings() does return a table (I did print(C_Garrison.GetBuildings()) ), but any iteration on that table seems to be completely ignored.\r\n\r\nI tried changing the event to PLAYER_ENTERING_WORLD but that seems to suffer from the same issue.\r\n\r\nAs a result \"enchantingBuilding\" will always be false on initial login, even though you actually have the enchanting building. In order for the library to function correctly you need to do a /reload after logging in.\r\n\r\nI can only imagine that Blizzard has some form of limitation in place, and if that is true then you might need to delay the iteration on C_Garrison.GetBuildings()."},"comment":{"url":"https://api.github.com/repos/p3lim-wow/LibProcessable/issues/comments/77444623","html_url":"https://github.com/p3lim-wow/LibProcessable/issues/5#issuecomment-77444623","issue_url":"https://api.github.com/repos/p3lim-wow/LibProcessable/issues/5","id":77444623,"user":{"login":"p3lim","id":26496,"avatar_url":"https://avatars.githubusercontent.com/u/26496?v=3","gravatar_id":"","url":"https://api.github.com/users/p3lim","html_url":"https://github.com/p3lim","followers_url":"https://api.github.com/users/p3lim/followers","following_url":"https://api.github.com/users/p3lim/following{/other_user}","gists_url":"https://api.github.com/users/p3lim/gists{/gist_id}","starred_url":"https://api.github.com/users/p3lim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p3lim/subscriptions","organizations_url":"https://api.github.com/users/p3lim/orgs","repos_url":"https://api.github.com/users/p3lim/repos","events_url":"https://api.github.com/users/p3lim/events{/privacy}","received_events_url":"https://api.github.com/users/p3lim/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T20:26:53Z","updated_at":"2015-03-05T20:26:53Z","body":"Test that and let me know if it works for you as well, seems like they changed something in 6.1."}}