{"action":"created","issue":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2781","repository_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge","labels_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2781/labels{/name}","comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2781/comments","events_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2781/events","html_url":"https://github.com/MinecraftForge/MinecraftForge/issues/2781","id":150696778,"number":2781,"title":"[1.9] IllegalAccessError when using InitMapGenEvent (works for mc 1.8.9 but not in mc 1.9)","user":{"login":"JennyLeeP","id":2507994,"avatar_url":"https://avatars.githubusercontent.com/u/2507994?v=3","gravatar_id":"","url":"https://api.github.com/users/JennyLeeP","html_url":"https://github.com/JennyLeeP","followers_url":"https://api.github.com/users/JennyLeeP/followers","following_url":"https://api.github.com/users/JennyLeeP/following{/other_user}","gists_url":"https://api.github.com/users/JennyLeeP/gists{/gist_id}","starred_url":"https://api.github.com/users/JennyLeeP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JennyLeeP/subscriptions","organizations_url":"https://api.github.com/users/JennyLeeP/orgs","repos_url":"https://api.github.com/users/JennyLeeP/repos","events_url":"https://api.github.com/users/JennyLeeP/events{/privacy}","received_events_url":"https://api.github.com/users/JennyLeeP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-24T20:28:01Z","updated_at":"2016-04-24T20:50:57Z","closed_at":null,"body":"I am getting this error while trying to initialize my caveGen. This is  mc 1.9 using forge version \"1.9-12.16.0.1865-1.9\"\r\nIt is entirely possible I need to handle the event differently in this version of forge.\r\n\r\n************************\r\nDescription: Exception in server tick loop\r\n\r\njava.lang.IllegalAccessError: tried to access field net.minecraftforge.event.terraingen.InitMapGenEvent.type from class com.cyborgJenn.cyborgUtils.CyborgUtils\r\n\tat com.cyborgJenn.cyborgUtils.CyborgUtils.generatorControl(CyborgUtils.java:155)\r\n\tat net.minecraftforge.fml.common.eventhandler.ASMEventHandler_14_CyborgUtils_generatorControl_InitMapGenEvent.invoke(.dynamic)\r\n\tat net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49)\r\n\tat net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140)\r\n\tat net.minecraftforge.event.terraingen.TerrainGen.getModdedMapGen(TerrainGen.java:28)\r\n\tat net.minecraft.world.gen.ChunkProviderOverworld.<init>(ChunkProviderOverworld.java:63)\r\n\tat net.minecraft.world.WorldType.getChunkGenerator(WorldType.java:178)\r\n\tat net.minecraft.world.WorldProvider.createChunkGenerator(WorldProvider.java:75)\r\n\tat net.minecraft.world.WorldServer.createChunkProvider(WorldServer.java:883)\r\n\tat net.minecraft.world.WorldServer.<init>(WorldServer.java:117)\r\n\tat net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:85)\r\n\tat net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:123)\r\n\tat net.minecraft.server.MinecraftServer.run(MinecraftServer.java:492)\r\n\tat java.lang.Thread.run(Unknown Source)\r\n************************\r\nline 155 = switch(event.type){\r\nbelow is the code I am using.\r\n\r\n```java\r\n@SubscribeEvent(priority = EventPriority.NORMAL)\r\n\tpublic void getWorldEvent(WorldEvent event){\r\n\t\tdimension = event.world.provider.getDimensionId();\r\n\t}\r\n\r\n\t/*\r\n\t * Gets the MinecraftForge MapGen event type\r\n\t */\r\n\t@SubscribeEvent(priority = EventPriority.NORMAL)\r\n\tpublic void generatorControl(InitMapGenEvent event)\r\n\t{\r\n\t\tif (dimension == 0){\r\n\t\t\tswitch(event.type){\r\n\r\n\t\t\tcase CAVE:\r\n\t\t\t\tevent.newGen = caveGen;\r\n\t\t\t\tlogger.info(\"Cave Gen Event Fired\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase CUSTOM:\r\n\t\t\t\tbreak;\r\n\t\t\tcase MINESHAFT:\r\n\t\t\t\tbreak;\r\n\t\t\tcase NETHER_BRIDGE:\r\n\t\t\t\tbreak;\r\n\t\t\tcase NETHER_CAVE:\r\n\t\t\t\tbreak;\r\n\t\t\tcase RAVINE:// TODO larger Ravines\r\n\t\t\t\tbreak;\r\n\t\t\tcase SCATTERED_FEATURE:\r\n\t\t\t\tbreak;\r\n\t\t\tcase STRONGHOLD:\r\n\t\t\t\tbreak;\r\n\t\t\tcase VILLAGE:\r\n\t\t\t\tbreak;\r\n\t\t\tcase OCEAN_MONUMENT:\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/comments/214032893","html_url":"https://github.com/MinecraftForge/MinecraftForge/issues/2781#issuecomment-214032893","issue_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2781","id":214032893,"user":{"login":"liach","id":7806504,"avatar_url":"https://avatars.githubusercontent.com/u/7806504?v=3","gravatar_id":"","url":"https://api.github.com/users/liach","html_url":"https://github.com/liach","followers_url":"https://api.github.com/users/liach/followers","following_url":"https://api.github.com/users/liach/following{/other_user}","gists_url":"https://api.github.com/users/liach/gists{/gist_id}","starred_url":"https://api.github.com/users/liach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liach/subscriptions","organizations_url":"https://api.github.com/users/liach/orgs","repos_url":"https://api.github.com/users/liach/repos","events_url":"https://api.github.com/users/liach/events{/privacy}","received_events_url":"https://api.github.com/users/liach/received_events","type":"User","site_admin":false},"created_at":"2016-04-24T20:50:57Z","updated_at":"2016-04-24T20:50:57Z","body":"Update forge in your dev env."}}