I've now run into a few issues with folks playing with Epicurean Gastronomy running into Int2ObjectMap contained two equal IDs crashes when they try to load their world with the new Fabric API. I thought it might be something with Epicurean, but then OliviaTheVampire in the Fabric discord ran into it with their mods as well. It seems to be happening with real items along with the minecraft:air bug Epicurean's been running into. The crash only begins happening in builds 171 and above, so it's probably something with the new API.
any update on this issue / this also causes custom blocks not to be dropped when Epicurean is loaded in mod list
The problem is that downgrading fabric does not solve this at all. It solves this bug, yes, but intoduces a lot of others. 50s builds tend to work, but some mods have no working GUI and 60s builds sometimes prevent dropping items when mining a block.
https://github.com/CottonMC/EpicureanGastronomy/issues/20#issuecomment-499684297 Another instance found.
I'm working on a PR that should hopefully make the error message a lot clearer, so that we can better see what's going on.
hey @TimGoll @Luxley, could you try this version of Fabric API and send me the crash logs? It should get us one step closer to fixing it, since the logs will actually say what the real problem is.
@el0c you too, please
@Boundarybreaker
The game crashed whilst unexpected error
Error: java.lang.RuntimeException: Registry minecraft:item contained two objects with ID 1411 (net.minecraft.class_1093@1475c59c/1411 vs superores:super_platinum_ore/1411)!
Oh boy.
That actually clears everything up. Thank you so much for helping!
Whats the problem?
Enlighten my peanut brain!
It's trying to map the block model registry and the item registry at the same time, causing their IDs to run into each other!
Wait, hm. It looks like it's something else. Gonna make a new test build.
@Luxley new one to try with, theoretically (it'll still crash but it should be more descriptive about why it's crashing)
@Boundarybreaker
Sorry on the slowness
The game crashed whilst unexpected error
Error: java.lang.RuntimeException: Registry minecraft:item contained two objects with ID 1411 (net.minecraft.class_1093@319537bd/1411 vs superores:super_platinum_ore/1411)!
Ugh, it did't upload properly. New name so it doesn't collide!
@Boundarybreaker
The game crashed whilst unexpected error
Error: java.lang.RuntimeException: Int2ObjectMap contained two objects with int ID 1411 (superores:super_platinum_ore/1411 vs superores:super_platinum_ore/1411)!
crash-2019-06-06_19.16.56-client.txt
AH HA!
that sounds great! @Boundarybreaker :D
Flaw in Epicurean Gastronomy. Fabric will now correctly detect it and throw at the game load stage. o/