1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-29 08:42:17 +00:00

Ensure that static inits in Registry happen at a defined time.

There must be a better way to do this, but at least I understand why
this code existed before.
This commit is contained in:
Toad-Dev 2021-12-15 19:39:44 -08:00
parent f74a386312
commit 9083e4f97b

View File

@ -77,6 +77,16 @@ public final class Registry
public static void init()
{
// Touch each static class to force static initializers to run
// Maybe there's a better way to do this :/
Object[] o = {
ModBlockEntities.CABLE,
ModBlocks.CABLE,
ModItems.CABLE,
ModEntities.TURTLE_PLAYER,
ModContainers.COMPUTER,
};
TurtleUpgrades.registerTurtleUpgrades();
PocketUpgrades.registerPocketUpgrades();