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:
parent
f74a386312
commit
9083e4f97b
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user