{"action":"closed","issue":{"url":"https://api.github.com/repos/EpicKnarvik97/pokemon-cmd/issues/14","repository_url":"https://api.github.com/repos/EpicKnarvik97/pokemon-cmd","labels_url":"https://api.github.com/repos/EpicKnarvik97/pokemon-cmd/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/EpicKnarvik97/pokemon-cmd/issues/14/comments","events_url":"https://api.github.com/repos/EpicKnarvik97/pokemon-cmd/issues/14/events","html_url":"https://github.com/EpicKnarvik97/pokemon-cmd/issues/14","id":276825363,"number":14,"title":"Scanner isn't flushed properly","user":{"login":"EpicKnarvik97","id":3597346,"avatar_url":"https://avatars3.githubusercontent.com/u/3597346?v=4","gravatar_id":"","url":"https://api.github.com/users/EpicKnarvik97","html_url":"https://github.com/EpicKnarvik97","followers_url":"https://api.github.com/users/EpicKnarvik97/followers","following_url":"https://api.github.com/users/EpicKnarvik97/following{/other_user}","gists_url":"https://api.github.com/users/EpicKnarvik97/gists{/gist_id}","starred_url":"https://api.github.com/users/EpicKnarvik97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EpicKnarvik97/subscriptions","organizations_url":"https://api.github.com/users/EpicKnarvik97/orgs","repos_url":"https://api.github.com/users/EpicKnarvik97/repos","events_url":"https://api.github.com/users/EpicKnarvik97/events{/privacy}","received_events_url":"https://api.github.com/users/EpicKnarvik97/received_events","type":"User","site_admin":false},"labels":[{"id":760059951,"url":"https://api.github.com/repos/EpicKnarvik97/pokemon-cmd/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"EpicKnarvik97","id":3597346,"avatar_url":"https://avatars3.githubusercontent.com/u/3597346?v=4","gravatar_id":"","url":"https://api.github.com/users/EpicKnarvik97","html_url":"https://github.com/EpicKnarvik97","followers_url":"https://api.github.com/users/EpicKnarvik97/followers","following_url":"https://api.github.com/users/EpicKnarvik97/following{/other_user}","gists_url":"https://api.github.com/users/EpicKnarvik97/gists{/gist_id}","starred_url":"https://api.github.com/users/EpicKnarvik97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EpicKnarvik97/subscriptions","organizations_url":"https://api.github.com/users/EpicKnarvik97/orgs","repos_url":"https://api.github.com/users/EpicKnarvik97/repos","events_url":"https://api.github.com/users/EpicKnarvik97/events{/privacy}","received_events_url":"https://api.github.com/users/EpicKnarvik97/received_events","type":"User","site_admin":false},"assignees":[{"login":"EpicKnarvik97","id":3597346,"avatar_url":"https://avatars3.githubusercontent.com/u/3597346?v=4","gravatar_id":"","url":"https://api.github.com/users/EpicKnarvik97","html_url":"https://github.com/EpicKnarvik97","followers_url":"https://api.github.com/users/EpicKnarvik97/followers","following_url":"https://api.github.com/users/EpicKnarvik97/following{/other_user}","gists_url":"https://api.github.com/users/EpicKnarvik97/gists{/gist_id}","starred_url":"https://api.github.com/users/EpicKnarvik97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EpicKnarvik97/subscriptions","organizations_url":"https://api.github.com/users/EpicKnarvik97/orgs","repos_url":"https://api.github.com/users/EpicKnarvik97/repos","events_url":"https://api.github.com/users/EpicKnarvik97/events{/privacy}","received_events_url":"https://api.github.com/users/EpicKnarvik97/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-11-26T13:37:53Z","updated_at":"2017-11-27T10:13:53Z","closed_at":"2017-11-27T10:13:53Z","author_association":"OWNER","body":"### Expected behavior\r\nScanner is supposed to wait for input, and is supposed to be empty.\r\n### Actual behavior\r\nScanner runs a command from previous input.\r\n### Steps to reproduce the behavior\r\nIf a user inputs invalid input when choosing a pokeball or a potion, it is not flushed properly. This can be tested by inputting s. It will say that the item is invalid, then it will save and lastly it will return to normal. It will save once for each s with a space in between, but not for a line of ssss. Both `chosenPotion` and `chosenPokeball` run `in.nextLine();` before returning, so it's supposed to contain an empty line the next time the scanner reads.\r\n### Information about java version, enviroment, branch etc.\r\nLatest java, latest version of master branch."}}
{"actor":{"display_login":"EpicKnarvik97"}}