mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-31 17:47:56 +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:
@@ -77,6 +77,16 @@ public final class Registry
|
|||||||
|
|
||||||
public static void init()
|
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();
|
TurtleUpgrades.registerTurtleUpgrades();
|
||||||
PocketUpgrades.registerPocketUpgrades();
|
PocketUpgrades.registerPocketUpgrades();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user