{"action":"created","issue":{"url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/474","labels_url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/474/comments","events_url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/474/events","html_url":"https://github.com/CovertJaguar/Railcraft/pull/474","id":55004680,"number":474,"title":"Fixed issue with carts moving in impossible directions on switch tracks","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":null,"milestone":null,"comments":9,"created_at":"2015-01-21T11:02:05Z","updated_at":"2015-01-24T11:25:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CovertJaguar/Railcraft/pulls/474","html_url":"https://github.com/CovertJaguar/Railcraft/pull/474","diff_url":"https://github.com/CovertJaguar/Railcraft/pull/474.diff","patch_url":"https://github.com/CovertJaguar/Railcraft/pull/474.patch"},"body":"I used a trick where we cache the carts that are just about to spring or lock the track. Then in the subclasses' getBasicRailMetadata() method we can test against this cache to see whether the cart attempting to get the possible track direction should use the sprung or lock direction. This ensures that the cart always gets the correct meta, even if visually the track doesn't reflect this."},"comment":{"url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/comments/71312087","html_url":"https://github.com/CovertJaguar/Railcraft/pull/474#issuecomment-71312087","issue_url":"https://api.github.com/repos/CovertJaguar/Railcraft/issues/474","id":71312087,"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},"created_at":"2015-01-24T11:25:07Z","updated_at":"2015-01-24T11:25:07Z","body":"I think decision carts still need to respect the sprung/lock timers in case they are part of trains."}}