Ex Compressum

Ex Compressum

22M Downloads

Oredicts getting registered too early (before Item event)

BloodWorkXGaming opened this issue ยท 0 comments

commented

You are registering your Oredicts for your block too early here:
https://github.com/blay09/ExCompressum/blob/1.12/src/main/java/net/blay09/mods/excompressum/ExCompressum.java#L185-L195

which causes a bunch of those errors

****************************************
* Invalid registration attempt for an Ore Dictionary item with name compressed1xEndStone has occurred. The registration has been denied to prevent crashes. The mod responsible for the registration needs to correct this.
*  at net.minecraftforge.oredict.OreDictionary.registerOreImpl(OreDictionary.java:642)
*  at net.minecraftforge.oredict.OreDictionary.registerOre(OreDictionary.java:628)
*  at net.blay09.mods.excompressum.ExCompressum.registerBlocks(ExCompressum.java:195)
*  at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_67_ExCompressum_registerBlocks_Register.invoke(.dynamic)
*  at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
*  at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:143)...
****************************************

You either gotta move it to init or to the registerItem event as right now you are trying to register an Oredict to an ItemStack which isn't created yet in the registerItem event.