{"action":"created","issue":{"url":"https://api.github.com/repos/tterrag1098/BON2/issues/30","repository_url":"https://api.github.com/repos/tterrag1098/BON2","labels_url":"https://api.github.com/repos/tterrag1098/BON2/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/tterrag1098/BON2/issues/30/comments","events_url":"https://api.github.com/repos/tterrag1098/BON2/issues/30/events","html_url":"https://github.com/tterrag1098/BON2/issues/30","id":177196121,"number":30,"title":"Fail to detect forgegradle 2 mappings","user":{"login":"raGan262","id":830072,"avatar_url":"https://avatars.githubusercontent.com/u/830072?v=3","gravatar_id":"","url":"https://api.github.com/users/raGan262","html_url":"https://github.com/raGan262","followers_url":"https://api.github.com/users/raGan262/followers","following_url":"https://api.github.com/users/raGan262/following{/other_user}","gists_url":"https://api.github.com/users/raGan262/gists{/gist_id}","starred_url":"https://api.github.com/users/raGan262/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raGan262/subscriptions","organizations_url":"https://api.github.com/users/raGan262/orgs","repos_url":"https://api.github.com/users/raGan262/repos","events_url":"https://api.github.com/users/raGan262/events{/privacy}","received_events_url":"https://api.github.com/users/raGan262/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T14:42:01Z","updated_at":"2016-10-27T01:12:40Z","closed_at":null,"body":"I ran into this issue with forge `1.10.2 - 12.18.1.2088`. After running setupDecompWorkspace, my cache looks like this:\r\n`.../.gradle/caches/minecraft/de/oceanlabs/mcp/mcp_snapshot/20160518/1.10.2/srgs/`\r\n\r\nThat's a problem because snapshot 20160518 links to 1.9.4 in versions.json from mcpbot.\r\n\r\nI worked around the issue by adding following code in case regular version recognition fails:\r\n```\r\nfor(File mcVerFile : snapshotFile.listFiles()) {\r\n    if(mcVerFile.isDirectory() && Arrays.asList(mcVerFile.list()).contains(\"srgs\")) {\r\n        versions.add(new MappingVersion(\r\n                snapshotFile.getName() + \"-\" + mcVerFile.getName(),\r\n                new File(mcVerFile, \"srgs\"))\r\n        );\r\n    }\r\n}\r\n```\r\n\r\nIt looks like we can't rely on versions always matching snapshot."},"comment":{"url":"https://api.github.com/repos/tterrag1098/BON2/issues/comments/256520710","html_url":"https://github.com/tterrag1098/BON2/issues/30#issuecomment-256520710","issue_url":"https://api.github.com/repos/tterrag1098/BON2/issues/30","id":256520710,"user":{"login":"SuperKael","id":10406707,"avatar_url":"https://avatars.githubusercontent.com/u/10406707?v=3","gravatar_id":"","url":"https://api.github.com/users/SuperKael","html_url":"https://github.com/SuperKael","followers_url":"https://api.github.com/users/SuperKael/followers","following_url":"https://api.github.com/users/SuperKael/following{/other_user}","gists_url":"https://api.github.com/users/SuperKael/gists{/gist_id}","starred_url":"https://api.github.com/users/SuperKael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuperKael/subscriptions","organizations_url":"https://api.github.com/users/SuperKael/orgs","repos_url":"https://api.github.com/users/SuperKael/repos","events_url":"https://api.github.com/users/SuperKael/events{/privacy}","received_events_url":"https://api.github.com/users/SuperKael/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T01:12:40Z","updated_at":"2016-10-27T01:12:40Z","body":"Can confirm. Until this is fixed, a solution I went with was to go to the \"20160518\" folder and make a copy of \"1.10.2\" and rename the copy to \"1.9.4\". BON now believes it is deobfuscating for 1.9.4, but really it's deobfuscating for 1.10.2, and it works fine for mods of that version."}}
{"actor":{"display_login":"SuperKael"}}