{"action":"created","issue":{"url":"https://api.github.com/repos/zhuowei/MCPELauncher/issues/418","labels_url":"https://api.github.com/repos/zhuowei/MCPELauncher/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/zhuowei/MCPELauncher/issues/418/comments","events_url":"https://api.github.com/repos/zhuowei/MCPELauncher/issues/418/events","html_url":"https://github.com/zhuowei/MCPELauncher/issues/418","id":122946490,"number":418,"title":"With MCPE 0.13.1 creating a new mob render crashes BlockLauncher","user":{"login":"Desno365","id":7270435,"avatar_url":"https://avatars.githubusercontent.com/u/7270435?v=3","gravatar_id":"","url":"https://api.github.com/users/Desno365","html_url":"https://github.com/Desno365","followers_url":"https://api.github.com/users/Desno365/followers","following_url":"https://api.github.com/users/Desno365/following{/other_user}","gists_url":"https://api.github.com/users/Desno365/gists{/gist_id}","starred_url":"https://api.github.com/users/Desno365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Desno365/subscriptions","organizations_url":"https://api.github.com/users/Desno365/orgs","repos_url":"https://api.github.com/users/Desno365/repos","events_url":"https://api.github.com/users/Desno365/events{/privacy}","received_events_url":"https://api.github.com/users/Desno365/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-18T13:14:42Z","updated_at":"2015-12-23T23:50:59Z","closed_at":null,"body":"Creating a render crashes the game during startup of BlockLauncher.\r\nThis only happens with the latest version of Minecraft PE 0.13.1. Before it worked correctly.\r\n\r\nThis is the code I had to comment out to make it stop crashing:\r\n```javascript\r\nfunction addGrenadeRenderType(renderer)\r\n{\r\n    var model = renderer.getModel();\r\n \r\n    var head = model.getPart(\"head\");\r\n    var body = model.getPart(\"body\");\r\n    var rArm = model.getPart(\"rightArm\");\r\n    var lArm = model.getPart(\"leftArm\");\r\n    var rLeg = model.getPart(\"rightLeg\");\r\n    var lLeg = model.getPart(\"leftLeg\");\r\n \r\n    head.clear();\r\n \r\n    body.clear();\r\n    body.setTextureOffset(0, 0);\r\n    body.addBox(-1, 20, -1.5, 2, 4, 3);\r\n    body.setTextureOffset(8, 0);\r\n    body.addBox(-0.5, 20.5, 1.5, 1, 1, 1);\r\n \r\n    rArm.clear();\r\n \r\n    lArm.clear();\r\n \r\n    rLeg.clear();\r\n \r\n    lLeg.clear();\r\n}\r\nvar grenadeRenderType = Renderer.createHumanoidRenderer();\r\naddGrenadeRenderType(grenadeRenderType);\r\n```\r\n\r\n\r\n\r\nEdit: by further research, commenting out this part made BL stop crashing:\r\n```javascript\r\n    head.clear();\r\n \r\n    body.clear();\r\n    body.setTextureOffset(0, 0);\r\n    body.addBox(-1, 20, -1.5, 2, 4, 3);\r\n    body.setTextureOffset(8, 0);\r\n    body.addBox(-0.5, 20.5, 1.5, 1, 1, 1);\r\n \r\n    rArm.clear();\r\n \r\n    lArm.clear();\r\n \r\n    rLeg.clear();\r\n \r\n    lLeg.clear();\r\n```"},"comment":{"url":"https://api.github.com/repos/zhuowei/MCPELauncher/issues/comments/167010476","html_url":"https://github.com/zhuowei/MCPELauncher/issues/418#issuecomment-167010476","issue_url":"https://api.github.com/repos/zhuowei/MCPELauncher/issues/418","id":167010476,"user":{"login":"zhuowei","id":704768,"avatar_url":"https://avatars.githubusercontent.com/u/704768?v=3","gravatar_id":"","url":"https://api.github.com/users/zhuowei","html_url":"https://github.com/zhuowei","followers_url":"https://api.github.com/users/zhuowei/followers","following_url":"https://api.github.com/users/zhuowei/following{/other_user}","gists_url":"https://api.github.com/users/zhuowei/gists{/gist_id}","starred_url":"https://api.github.com/users/zhuowei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhuowei/subscriptions","organizations_url":"https://api.github.com/users/zhuowei/orgs","repos_url":"https://api.github.com/users/zhuowei/repos","events_url":"https://api.github.com/users/zhuowei/events{/privacy}","received_events_url":"https://api.github.com/users/zhuowei/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T23:50:59Z","updated_at":"2015-12-23T23:50:59Z","body":"Thanks; will take a look."}}