Careful Cast Corrector or CCC for short, is a Patch for Minecraft 1.7.x that fixes a extreme rare case of Crashing in Worldgen.
The Spawner room in Minecraft has missing checks that can cause crashes at any time they spawn.
This Mod adds this extra check that was added in later MC versions.
This mod is Highly Suggested to be used with "Chunk Pregenerator" to increase its stability.
Thanks to Chocohead for writing the ASM code.
Great, thanks.
Also: cheers. It's been like four years and I'm finally That Guy™ who asks about modpack permissions.
Can CCC be included in modpacks?
In reply to AstroTibs:
Yes
Do you mind indulging me—what was the failed check?
In reply to AstroTibs:
It fixes this crash that can happen even within vanilla only (with the exact same crash result)
https://pastebin.com/0YATM0pN
Edit: Also this is only a 1.7.x bug any other version has this issue fixed. So no need for ports.
In reply to Speiger:
I mean: what exactly is going wrong that was fixed? Something's failing to get cast as a TileEntityChest.
I'm looking at 1.7 and 1.8 and they're doing similar things... both set a XYZ position to be a chest, and then immediately afterward, they obtain the tile entity from that XYZ position. The only difference is that 1.7 assumes it's a TileEntityChest and then only generates loot if it's not null, while 1.8 casts it as a TileEntity and only generates loot if it's also a TileEntityChest.
I don't understand the problem. The position is set to be a chest—why wouldn't a TileEntityChest be obtainable immediately afterward?
In reply to AstroTibs:
1.7.10 has a lot of chunkcascading that means during worldgen it creates a new chunk and then replaces the block that means spawner rooms had the chance to override itself before they would access the tileentity and a different tileentity was placed instead causing a cast class exception. This makes sure that it checks that the tileentity is what you want before casting it to what it expects.