{"action":"closed","issue":{"url":"https://api.github.com/repos/josephcsible/Oreberries/issues/12","repository_url":"https://api.github.com/repos/josephcsible/Oreberries","labels_url":"https://api.github.com/repos/josephcsible/Oreberries/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/josephcsible/Oreberries/issues/12/comments","events_url":"https://api.github.com/repos/josephcsible/Oreberries/issues/12/events","html_url":"https://github.com/josephcsible/Oreberries/issues/12","id":339128186,"node_id":"MDU6SXNzdWUzMzkxMjgxODY=","number":12,"title":"Crash with mobultion","user":{"login":"mcpecommander","id":25066107,"node_id":"MDQ6VXNlcjI1MDY2MTA3","avatar_url":"https://avatars0.githubusercontent.com/u/25066107?v=4","gravatar_id":"","url":"https://api.github.com/users/mcpecommander","html_url":"https://github.com/mcpecommander","followers_url":"https://api.github.com/users/mcpecommander/followers","following_url":"https://api.github.com/users/mcpecommander/following{/other_user}","gists_url":"https://api.github.com/users/mcpecommander/gists{/gist_id}","starred_url":"https://api.github.com/users/mcpecommander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcpecommander/subscriptions","organizations_url":"https://api.github.com/users/mcpecommander/orgs","repos_url":"https://api.github.com/users/mcpecommander/repos","events_url":"https://api.github.com/users/mcpecommander/events{/privacy}","received_events_url":"https://api.github.com/users/mcpecommander/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-07T08:23:01Z","updated_at":"2018-07-07T08:35:28Z","closed_at":"2018-07-07T08:35:28Z","author_association":"NONE","body":"https://github.com/josephcsible/Oreberries/blob/eb18416eebb7f877819c62fe3155a571532f12e5/src/main/java/josephcsible/oreberries/BlockOreberryBush.java#L230-L235\r\nthis method is using the wrong state. the state that is passed to this according to vanilla is the block state, not the IPlantable state. \r\nI use my gardener enderman to check if blocks can sustain plants and since I am passing the block (grass, farmland or whatever) it is crashing with your method. I can not change the parameter to take the IPlantable state as my method will simply not work with vanilla and any other mod that is doing it correctly.\r\nThe fix is super simple:\r\n```if (plantable instanceof BlockOreberryBush)\r\n\t\t\treturn world.getBlockState(pos.offset(direction)).getValue(AGE) > 1;\r\n```"}}
{"actor":{"display_login":"mcpecommander"}}