{"action":"created","issue":{"url":"https://api.github.com/repos/mhsjlw/flying-squid/issues/104","labels_url":"https://api.github.com/repos/mhsjlw/flying-squid/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/mhsjlw/flying-squid/issues/104/comments","events_url":"https://api.github.com/repos/mhsjlw/flying-squid/issues/104/events","html_url":"https://github.com/mhsjlw/flying-squid/issues/104","id":117846831,"number":104,"title":"Crash when trying to use non-block item on a block","user":{"login":"109C","id":9680886,"avatar_url":"https://avatars.githubusercontent.com/u/9680886?v=3","gravatar_id":"","url":"https://api.github.com/users/109C","html_url":"https://github.com/109C","followers_url":"https://api.github.com/users/109C/followers","following_url":"https://api.github.com/users/109C/following{/other_user}","gists_url":"https://api.github.com/users/109C/gists{/gist_id}","starred_url":"https://api.github.com/users/109C/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/109C/subscriptions","organizations_url":"https://api.github.com/users/109C/orgs","repos_url":"https://api.github.com/users/109C/repos","events_url":"https://api.github.com/users/109C/events{/privacy}","received_events_url":"https://api.github.com/users/109C/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mhsjlw/flying-squid/labels/blocks","name":"blocks","color":"c7def8"},{"url":"https://api.github.com/repos/mhsjlw/flying-squid/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-19T16:09:38Z","updated_at":"2015-11-19T22:09:11Z","closed_at":"2015-11-19T22:06:58Z","body":"Tested with these materials, and the crash always happens.\r\n* Water bucket\r\n* Creeper / Zombie / etc spawn egg\r\n* Raw beef / steak / etc\r\n\r\n```\r\n/Users/C109/Desktop/squid_new/dist/lib/plugins/placeBlock.js:49\r\n        throw err;\r\n              ^\r\nTypeError: Cannot read property 'material' of undefined\r\n    at /Users/C109/Desktop/squid_new/dist/lib/plugins/placeBlock.js:30:69\r\n    at run (/Users/C109/Desktop/squid_new/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)\r\n    at /Users/C109/Desktop/squid_new/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28\r\n    at flush (/Users/C109/Desktop/squid_new/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)\r\n    at process._tickCallback (node.js:355:11)\r\n```"},"comment":{"url":"https://api.github.com/repos/mhsjlw/flying-squid/issues/comments/158215566","html_url":"https://github.com/mhsjlw/flying-squid/issues/104#issuecomment-158215566","issue_url":"https://api.github.com/repos/mhsjlw/flying-squid/issues/104","id":158215566,"user":{"login":"rom1504","id":2346494,"avatar_url":"https://avatars.githubusercontent.com/u/2346494?v=3","gravatar_id":"","url":"https://api.github.com/users/rom1504","html_url":"https://github.com/rom1504","followers_url":"https://api.github.com/users/rom1504/followers","following_url":"https://api.github.com/users/rom1504/following{/other_user}","gists_url":"https://api.github.com/users/rom1504/gists{/gist_id}","starred_url":"https://api.github.com/users/rom1504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom1504/subscriptions","organizations_url":"https://api.github.com/users/rom1504/orgs","repos_url":"https://api.github.com/users/rom1504/repos","events_url":"https://api.github.com/users/rom1504/events{/privacy}","received_events_url":"https://api.github.com/users/rom1504/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T22:09:11Z","updated_at":"2015-11-19T22:09:11Z","body":"When you don't look at a block, block_place is not sent it seems.\r\n\r\nI added a check to do nothing when you are not holding a block.\r\n\r\nSo, the crash is fixed. But using items is still not implemented, we can track this feature there https://github.com/mhsjlw/flying-squid/issues/106"}}