[Fix] WorldsTogether data was not properly initialized
This commit is contained in:
parent
86c2ff6129
commit
1200a6daaf
4 changed files with 7 additions and 8 deletions
|
@ -45,6 +45,7 @@ public class BCLib implements ModInitializer {
|
|||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
WorldsTogether.onInitialize();
|
||||
LevelGenEvents.register();
|
||||
BlockPredicates.ensureStaticInitialization();
|
||||
BCLBiomeRegistry.ensureStaticallyLoaded();
|
||||
|
|
|
@ -8,6 +8,7 @@ import org.betterx.bclib.config.Configs;
|
|||
import org.betterx.bclib.registry.BaseBlockEntityRenders;
|
||||
import org.betterx.bclib.registry.PresetsRegistryClient;
|
||||
import org.betterx.worlds.together.WorldsTogether;
|
||||
import org.betterx.worlds.together.client.WorldsTogetherClient;
|
||||
|
||||
import net.minecraft.client.resources.model.ModelResourceLocation;
|
||||
import net.minecraft.client.resources.model.UnbakedModel;
|
||||
|
@ -23,6 +24,7 @@ public class BCLibClient implements ClientModInitializer, ModelResourceProvider,
|
|||
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
WorldsTogetherClient.onInitializeClient();
|
||||
ModIntegrationAPI.registerAll();
|
||||
BaseBlockEntityRenders.register();
|
||||
DataExchangeAPI.prepareClientside();
|
||||
|
|
|
@ -8,10 +8,9 @@ import org.betterx.worlds.together.worldPreset.WorldPresets;
|
|||
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
|
||||
public class WorldsTogether implements ModInitializer {
|
||||
public class WorldsTogether {
|
||||
public static boolean SURPRESS_EXPERIMENTAL_DIALOG = false;
|
||||
public static boolean FORCE_SERVER_TO_BETTERX_PRESET = false;
|
||||
public static final String MOD_ID = "worlds_together";
|
||||
|
@ -24,14 +23,13 @@ public class WorldsTogether implements ModInitializer {
|
|||
return FabricLoader.getInstance().isDevelopmentEnvironment();
|
||||
}
|
||||
|
||||
public void onInitialize() {
|
||||
public static void onInitialize() {
|
||||
TagManager.ensureStaticallyLoaded();
|
||||
SurfaceRuleRegistry.ensureStaticallyLoaded();
|
||||
|
||||
|
||||
WorldConfig.registerModCache(WorldsTogether.MOD_ID);
|
||||
WorldPresets.ensureStaticallyLoaded();
|
||||
|
||||
}
|
||||
|
||||
public static ResourceLocation makeID(String s) {
|
||||
|
|
|
@ -2,10 +2,8 @@ package org.betterx.worlds.together.client;
|
|||
|
||||
import org.betterx.worlds.together.worldPreset.client.WorldPresetsClient;
|
||||
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
|
||||
public class WorldsTogetherClient implements ClientModInitializer {
|
||||
public void onInitializeClient() {
|
||||
public class WorldsTogetherClient {
|
||||
public static void onInitializeClient() {
|
||||
WorldPresetsClient.setupClientside();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue