MinecraftForge/FML

Subsitution - IDs are invalid

master801 opened this issue · 0 comments

After some poking around, I figured out that since the block/item isn't registered through GameRegistry, their ids will be invalid (-1).

This causes a huge issue when crafting subsituted items because, the ItemStack class gets the id of the item from the registry causing an issue, because I think that the subsitution for the item is not properly being detected.

EDIT; Yep, I was right. The registry class for FML completely ignores the subsituted item/block when getting the id for it.

Code: https://github.com/vdvman1/betterAnvil-forge/blob/master/src/main/java/vdvman1/betterAnvil/BetterAnvil.java#L89

Crash-report: http://pastebin.com/brrkvbtX