{"action":"created","issue":{"url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/497","labels_url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/497/comments","events_url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/497/events","html_url":"https://github.com/CovertJaguar/Railcraft/pull/497","id":57006553,"number":497,"title":"Fix for #490 [Switches don't always handle fast Trains near slopes correctly]","user":{"login":"ssotangkur","id":10198750,"avatar_url":"https://avatars.githubusercontent.com/u/10198750?v=3","gravatar_id":"","url":"https://api.github.com/users/ssotangkur","html_url":"https://github.com/ssotangkur","followers_url":"https://api.github.com/users/ssotangkur/followers","following_url":"https://api.github.com/users/ssotangkur/following{/other_user}","gists_url":"https://api.github.com/users/ssotangkur/gists{/gist_id}","starred_url":"https://api.github.com/users/ssotangkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssotangkur/subscriptions","organizations_url":"https://api.github.com/users/ssotangkur/orgs","repos_url":"https://api.github.com/users/ssotangkur/repos","events_url":"https://api.github.com/users/ssotangkur/events{/privacy}","received_events_url":"https://api.github.com/users/ssotangkur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ssotangkur","id":10198750,"avatar_url":"https://avatars.githubusercontent.com/u/10198750?v=3","gravatar_id":"","url":"https://api.github.com/users/ssotangkur","html_url":"https://github.com/ssotangkur","followers_url":"https://api.github.com/users/ssotangkur/followers","following_url":"https://api.github.com/users/ssotangkur/following{/other_user}","gists_url":"https://api.github.com/users/ssotangkur/gists{/gist_id}","starred_url":"https://api.github.com/users/ssotangkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssotangkur/subscriptions","organizations_url":"https://api.github.com/users/ssotangkur/orgs","repos_url":"https://api.github.com/users/ssotangkur/repos","events_url":"https://api.github.com/users/ssotangkur/events{/privacy}","received_events_url":"https://api.github.com/users/ssotangkur/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-02-09T09:29:00Z","updated_at":"2015-02-17T13:46:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CovertJaguar/Railcraft/pulls/497","html_url":"https://github.com/CovertJaguar/Railcraft/pull/497","diff_url":"https://github.com/CovertJaguar/Railcraft/pull/497.diff","patch_url":"https://github.com/CovertJaguar/Railcraft/pull/497.patch"},"body":"https://github.com/CovertJaguar/Railcraft/issues/490\r\n\r\nThere is an associated PR for the API change also here: https://github.com/CovertJaguar/Railcraft-API/pull/6\r\n\r\nThe fix involves changing how switch devices (levers/motors/routing) interact w/ the switch track. Instead of letting the switch modify the track's switch state directly, we let the track ask the switch when it needs to. This allows the track, which is already searching for carts, to submit the carts it finds to the switch logic, w/o the switch needing to search for the same carts on its own. \r\n\r\nThe issue that was found, arose from a tick ordering where carts that would have been found on the same tick by the track and the switch, were dependent on the switch processing first. If the switch's updateEntity() ran first, it would be able to set the \"switched\" variable in the track and the track would be able to \"spring\". On the other hand, if the track ran first, the switched variable would be false and the track would become \"locked\" for the cart.\r\n\r\nPlease note, I'm not sure what to do about the submodule changes so you probably don't want to accept these changes quite yet."},"comment":{"url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/comments/74669510","html_url":"https://github.com/CovertJaguar/Railcraft/pull/497#issuecomment-74669510","issue_url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/497","id":74669510,"user":{"login":"CovertJaguar","id":1521970,"avatar_url":"https://avatars.githubusercontent.com/u/1521970?v=3","gravatar_id":"","url":"https://api.github.com/users/CovertJaguar","html_url":"https://github.com/CovertJaguar","followers_url":"https://api.github.com/users/CovertJaguar/followers","following_url":"https://api.github.com/users/CovertJaguar/following{/other_user}","gists_url":"https://api.github.com/users/CovertJaguar/gists{/gist_id}","starred_url":"https://api.github.com/users/CovertJaguar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CovertJaguar/subscriptions","organizations_url":"https://api.github.com/users/CovertJaguar/orgs","repos_url":"https://api.github.com/users/CovertJaguar/repos","events_url":"https://api.github.com/users/CovertJaguar/events{/privacy}","received_events_url":"https://api.github.com/users/CovertJaguar/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T13:46:29Z","updated_at":"2015-02-17T13:46:29Z","body":"Oh? You got it working? Nice. Congrats on leveling up your Git-Fu!"}}