EXTER7 / OreDictionaryConverter

Minecraft mod that adds an item/block that converts between different versions of the same ore using the Forge Ore Dictionary
GNU Lesser General Public License v3.0
14 stars 7 forks source link

IllegalAccessError on OreRegisterEvent.Name #10

Closed Nerdpie closed 8 years ago

Nerdpie commented 8 years ago

The error, snipped from minetweaker.log :

ERROR: Error executing OreDict.zs: tried to access field net.minecraftforge.oredict.OreDictionary$OreRegisterEvent.Name from class exter.fodc.ModOreDicConvert
java.lang.IllegalAccessError: tried to access field net.minecraftforge.oredict.OreDictionary$OreRegisterEvent.Name from class exter.fodc.ModOreDicConvert
    at exter.fodc.ModOreDicConvert.onOreDictionaryRegister(ModOreDicConvert.java:142)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_378_ModOreDicConvert_onOreDictionaryRegister_OreRegisterEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at net.minecraftforge.oredict.OreDictionary.registerOreImpl(OreDictionary.java:522)
    at net.minecraftforge.oredict.OreDictionary.registerOre(OreDictionary.java:469)
    at minetweaker.mc19.oredict.MCOreDictEntry$ActionAddItem.apply(MCOreDictEntry.java:238)
    at minetweaker.runtime.MTTweaker.apply(MTTweaker.java:70)
    at minetweaker.MineTweakerAPI.apply(MineTweakerAPI.java:169)
    at minetweaker.mc19.oredict.MCOreDictEntry.add(MCOreDictEntry.java:60)
    at OreDict.__script__(OreDict.zs:4)
    at __ZenMain__.run(OreDict.zs)

The stack trace goes deeper, but I thought that this should be enough context to start.

I am currently using a custom 1.9 pack with a number of mods and Forge build 1859. Looking at the Forge source for 1.9, it appears that the Name field is now private, with a public getName method.