{"action":"created","comment":{"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/comments/184858935","pull_request_review_id":116142222,"id":184858935,"diff_hunk":"@@ -90,4 +101,20 @@ private int getHorseFlags() {\n     public Set<Material> getBreedingFoods() {\n         return BREEDING_FOODS;\n     }\n+\n+    @Override\n+    protected int computeGrowthAmount(Material material) {\n+        int amount = 0;\n+\n+        // We need to be a baby and only tamed horses can be fed with hay block\n+        if (!isAdult() && !(Material.HAY_BLOCK == material && !isTamed())) {\n+            Integer mapResult = GROWING_FOODS.get(material);\n+\n+            if (mapResult != null) {\n+                amount = Math.min(mapResult, Math.abs(getAge()));","path":"src/main/java/net/glowstone/entity/passive/GlowAbstractHorse.java","position":58,"original_position":58,"commit_id":"7fc93ce3f6773fcd4b734158d3bd6e16562544b4","original_commit_id":"7fc93ce3f6773fcd4b734158d3bd6e16562544b4","user":{"login":"momothereal","id":6775216,"avatar_url":"https://avatars0.githubusercontent.com/u/6775216?v=4","gravatar_id":"","url":"https://api.github.com/users/momothereal","html_url":"https://github.com/momothereal","followers_url":"https://api.github.com/users/momothereal/followers","following_url":"https://api.github.com/users/momothereal/following{/other_user}","gists_url":"https://api.github.com/users/momothereal/gists{/gist_id}","starred_url":"https://api.github.com/users/momothereal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/momothereal/subscriptions","organizations_url":"https://api.github.com/users/momothereal/orgs","repos_url":"https://api.github.com/users/momothereal/repos","events_url":"https://api.github.com/users/momothereal/events{/privacy}","received_events_url":"https://api.github.com/users/momothereal/received_events","type":"User","site_admin":false},"body":"No need for that local variable. Just return at this line, and return `0` and the end of the method.","created_at":"2018-04-28T16:29:58Z","updated_at":"2018-04-28T16:33:27Z","html_url":"https://github.com/GlowstoneMC/Glowstone/pull/907#discussion_r184858935","pull_request_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/907","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/comments/184858935"},"html":{"href":"https://github.com/GlowstoneMC/Glowstone/pull/907#discussion_r184858935"},"pull_request":{"href":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/907"}}},"pull_request":{"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/907","id":184792802,"html_url":"https://github.com/GlowstoneMC/Glowstone/pull/907","diff_url":"https://github.com/GlowstoneMC/Glowstone/pull/907.diff","patch_url":"https://github.com/GlowstoneMC/Glowstone/pull/907.patch","issue_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/907","number":907,"state":"open","locked":false,"title":"Feeding baby animals accelerate their growth","user":{"login":"FlorentClarret","id":1266346,"avatar_url":"https://avatars0.githubusercontent.com/u/1266346?v=4","gravatar_id":"","url":"https://api.github.com/users/FlorentClarret","html_url":"https://github.com/FlorentClarret","followers_url":"https://api.github.com/users/FlorentClarret/followers","following_url":"https://api.github.com/users/FlorentClarret/following{/other_user}","gists_url":"https://api.github.com/users/FlorentClarret/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorentClarret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorentClarret/subscriptions","organizations_url":"https://api.github.com/users/FlorentClarret/orgs","repos_url":"https://api.github.com/users/FlorentClarret/repos","events_url":"https://api.github.com/users/FlorentClarret/events{/privacy}","received_events_url":"https://api.github.com/users/FlorentClarret/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nCurrently, animals can be fed, but it does nothing except removing the item in the player's main hand. With this PR, feeding babies will slowly accelerate their growth. Most of the time, feeding a baby takes 10% off the remaining time to grow up. However, it's a bit different for horses and llamas because it depends on the item.\r\n\r\nI'm not really sure that my english is always correct here, so if you see something strange, tell me.","created_at":"2018-04-28T15:56:49Z","updated_at":"2018-04-28T16:33:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ad7c2fc716b84ddc806347f08b2d794124d63b2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/907/commits","review_comments_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/907/comments","review_comment_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/907/comments","statuses_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/statuses/7fc93ce3f6773fcd4b734158d3bd6e16562544b4","head":{"label":"FlorentClarret:feature/growing_babies","ref":"feature/growing_babies","sha":"7fc93ce3f6773fcd4b734158d3bd6e16562544b4","user":{"login":"FlorentClarret","id":1266346,"avatar_url":"https://avatars0.githubusercontent.com/u/1266346?v=4","gravatar_id":"","url":"https://api.github.com/users/FlorentClarret","html_url":"https://github.com/FlorentClarret","followers_url":"https://api.github.com/users/FlorentClarret/followers","following_url":"https://api.github.com/users/FlorentClarret/following{/other_user}","gists_url":"https://api.github.com/users/FlorentClarret/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorentClarret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorentClarret/subscriptions","organizations_url":"https://api.github.com/users/FlorentClarret/orgs","repos_url":"https://api.github.com/users/FlorentClarret/repos","events_url":"https://api.github.com/users/FlorentClarret/events{/privacy}","received_events_url":"https://api.github.com/users/FlorentClarret/received_events","type":"User","site_admin":false},"repo":{"id":126676282,"name":"Glowstone","full_name":"FlorentClarret/Glowstone","owner":{"login":"FlorentClarret","id":1266346,"avatar_url":"https://avatars0.githubusercontent.com/u/1266346?v=4","gravatar_id":"","url":"https://api.github.com/users/FlorentClarret","html_url":"https://github.com/FlorentClarret","followers_url":"https://api.github.com/users/FlorentClarret/followers","following_url":"https://api.github.com/users/FlorentClarret/following{/other_user}","gists_url":"https://api.github.com/users/FlorentClarret/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorentClarret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorentClarret/subscriptions","organizations_url":"https://api.github.com/users/FlorentClarret/orgs","repos_url":"https://api.github.com/users/FlorentClarret/repos","events_url":"https://api.github.com/users/FlorentClarret/events{/privacy}","received_events_url":"https://api.github.com/users/FlorentClarret/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FlorentClarret/Glowstone","description":"A fast, customizable and compatible open source server for Minecraft: Java Edition","fork":true,"url":"https://api.github.com/repos/FlorentClarret/Glowstone","forks_url":"https://api.github.com/repos/FlorentClarret/Glowstone/forks","keys_url":"https://api.github.com/repos/FlorentClarret/Glowstone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FlorentClarret/Glowstone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FlorentClarret/Glowstone/teams","hooks_url":"https://api.github.com/repos/FlorentClarret/Glowstone/hooks","issue_events_url":"https://api.github.com/repos/FlorentClarret/Glowstone/issues/events{/number}","events_url":"https://api.github.com/repos/FlorentClarret/Glowstone/events","assignees_url":"https://api.github.com/repos/FlorentClarret/Glowstone/assignees{/user}","branches_url":"https://api.github.com/repos/FlorentClarret/Glowstone/branches{/branch}","tags_url":"https://api.github.com/repos/FlorentClarret/Glowstone/tags","blobs_url":"https://api.github.com/repos/FlorentClarret/Glowstone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FlorentClarret/Glowstone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FlorentClarret/Glowstone/git/refs{/sha}","trees_url":"https://api.github.com/repos/FlorentClarret/Glowstone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FlorentClarret/Glowstone/statuses/{sha}","languages_url":"https://api.github.com/repos/FlorentClarret/Glowstone/languages","stargazers_url":"https://api.github.com/repos/FlorentClarret/Glowstone/stargazers","contributors_url":"https://api.github.com/repos/FlorentClarret/Glowstone/contributors","subscribers_url":"https://api.github.com/repos/FlorentClarret/Glowstone/subscribers","subscription_url":"https://api.github.com/repos/FlorentClarret/Glowstone/subscription","commits_url":"https://api.github.com/repos/FlorentClarret/Glowstone/commits{/sha}","git_commits_url":"https://api.github.com/repos/FlorentClarret/Glowstone/git/commits{/sha}","comments_url":"https://api.github.com/repos/FlorentClarret/Glowstone/comments{/number}","issue_comment_url":"https://api.github.com/repos/FlorentClarret/Glowstone/issues/comments{/number}","contents_url":"https://api.github.com/repos/FlorentClarret/Glowstone/contents/{+path}","compare_url":"https://api.github.com/repos/FlorentClarret/Glowstone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FlorentClarret/Glowstone/merges","archive_url":"https://api.github.com/repos/FlorentClarret/Glowstone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FlorentClarret/Glowstone/downloads","issues_url":"https://api.github.com/repos/FlorentClarret/Glowstone/issues{/number}","pulls_url":"https://api.github.com/repos/FlorentClarret/Glowstone/pulls{/number}","milestones_url":"https://api.github.com/repos/FlorentClarret/Glowstone/milestones{/number}","notifications_url":"https://api.github.com/repos/FlorentClarret/Glowstone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FlorentClarret/Glowstone/labels{/name}","releases_url":"https://api.github.com/repos/FlorentClarret/Glowstone/releases{/id}","deployments_url":"https://api.github.com/repos/FlorentClarret/Glowstone/deployments","created_at":"2018-03-25T07:59:22Z","updated_at":"2018-04-25T21:54:28Z","pushed_at":"2018-04-28T15:53:31Z","git_url":"git://github.com/FlorentClarret/Glowstone.git","ssh_url":"git@github.com:FlorentClarret/Glowstone.git","clone_url":"https://github.com/FlorentClarret/Glowstone.git","svn_url":"https://github.com/FlorentClarret/Glowstone","homepage":"https://glowstone.net","size":11940,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"GlowstoneMC:dev","ref":"dev","sha":"cd89b6b8878ccfc1cd4247486978621e1f3f680b","user":{"login":"GlowstoneMC","id":8682517,"avatar_url":"https://avatars2.githubusercontent.com/u/8682517?v=4","gravatar_id":"","url":"https://api.github.com/users/GlowstoneMC","html_url":"https://github.com/GlowstoneMC","followers_url":"https://api.github.com/users/GlowstoneMC/followers","following_url":"https://api.github.com/users/GlowstoneMC/following{/other_user}","gists_url":"https://api.github.com/users/GlowstoneMC/gists{/gist_id}","starred_url":"https://api.github.com/users/GlowstoneMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlowstoneMC/subscriptions","organizations_url":"https://api.github.com/users/GlowstoneMC/orgs","repos_url":"https://api.github.com/users/GlowstoneMC/repos","events_url":"https://api.github.com/users/GlowstoneMC/events{/privacy}","received_events_url":"https://api.github.com/users/GlowstoneMC/received_events","type":"Organization","site_admin":false},"repo":{"id":33457443,"name":"Glowstone","full_name":"GlowstoneMC/Glowstone","owner":{"login":"GlowstoneMC","id":8682517,"avatar_url":"https://avatars2.githubusercontent.com/u/8682517?v=4","gravatar_id":"","url":"https://api.github.com/users/GlowstoneMC","html_url":"https://github.com/GlowstoneMC","followers_url":"https://api.github.com/users/GlowstoneMC/followers","following_url":"https://api.github.com/users/GlowstoneMC/following{/other_user}","gists_url":"https://api.github.com/users/GlowstoneMC/gists{/gist_id}","starred_url":"https://api.github.com/users/GlowstoneMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlowstoneMC/subscriptions","organizations_url":"https://api.github.com/users/GlowstoneMC/orgs","repos_url":"https://api.github.com/users/GlowstoneMC/repos","events_url":"https://api.github.com/users/GlowstoneMC/events{/privacy}","received_events_url":"https://api.github.com/users/GlowstoneMC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GlowstoneMC/Glowstone","description":"A fast, customizable and compatible open source server for Minecraft: Java Edition","fork":false,"url":"https://api.github.com/repos/GlowstoneMC/Glowstone","forks_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/forks","keys_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/teams","hooks_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/hooks","issue_events_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/events{/number}","events_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/events","assignees_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/assignees{/user}","branches_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/branches{/branch}","tags_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/tags","blobs_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/git/refs{/sha}","trees_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/statuses/{sha}","languages_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/languages","stargazers_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/stargazers","contributors_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/contributors","subscribers_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/subscribers","subscription_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/subscription","commits_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/commits{/sha}","git_commits_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/git/commits{/sha}","comments_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/comments{/number}","issue_comment_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/comments{/number}","contents_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/contents/{+path}","compare_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/merges","archive_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/downloads","issues_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues{/number}","pulls_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls{/number}","milestones_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/milestones{/number}","notifications_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/labels{/name}","releases_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/releases{/id}","deployments_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/deployments","created_at":"2015-04-05T22:30:55Z","updated_at":"2018-04-27T18:45:00Z","pushed_at":"2018-04-28T15:56:50Z","git_url":"git://github.com/GlowstoneMC/Glowstone.git","ssh_url":"git@github.com:GlowstoneMC/Glowstone.git","clone_url":"https://github.com/GlowstoneMC/Glowstone.git","svn_url":"https://github.com/GlowstoneMC/Glowstone","homepage":"https://glowstone.net","size":11875,"stargazers_count":770,"watchers_count":770,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":158,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":158,"open_issues":52,"watchers":770,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/907"},"html":{"href":"https://github.com/GlowstoneMC/Glowstone/pull/907"},"issue":{"href":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/907"},"comments":{"href":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/907/comments"},"review_comments":{"href":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/907/comments"},"review_comment":{"href":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GlowstoneMC/Glowstone/pulls/907/commits"},"statuses":{"href":"https://api.github.com/repos/GlowstoneMC/Glowstone/statuses/7fc93ce3f6773fcd4b734158d3bd6e16562544b4"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"momothereal"}}