[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
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
|
WorldsTogether.onInitialize();
|
||||||
LevelGenEvents.register();
|
LevelGenEvents.register();
|
||||||
BlockPredicates.ensureStaticInitialization();
|
BlockPredicates.ensureStaticInitialization();
|
||||||
BCLBiomeRegistry.ensureStaticallyLoaded();
|
BCLBiomeRegistry.ensureStaticallyLoaded();
|
||||||
|
|
|
@ -8,6 +8,7 @@ import org.betterx.bclib.config.Configs;
|
||||||
import org.betterx.bclib.registry.BaseBlockEntityRenders;
|
import org.betterx.bclib.registry.BaseBlockEntityRenders;
|
||||||
import org.betterx.bclib.registry.PresetsRegistryClient;
|
import org.betterx.bclib.registry.PresetsRegistryClient;
|
||||||
import org.betterx.worlds.together.WorldsTogether;
|
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.ModelResourceLocation;
|
||||||
import net.minecraft.client.resources.model.UnbakedModel;
|
import net.minecraft.client.resources.model.UnbakedModel;
|
||||||
|
@ -23,6 +24,7 @@ public class BCLibClient implements ClientModInitializer, ModelResourceProvider,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitializeClient() {
|
public void onInitializeClient() {
|
||||||
|
WorldsTogetherClient.onInitializeClient();
|
||||||
ModIntegrationAPI.registerAll();
|
ModIntegrationAPI.registerAll();
|
||||||
BaseBlockEntityRenders.register();
|
BaseBlockEntityRenders.register();
|
||||||
DataExchangeAPI.prepareClientside();
|
DataExchangeAPI.prepareClientside();
|
||||||
|
|
|
@ -8,10 +8,9 @@ import org.betterx.worlds.together.worldPreset.WorldPresets;
|
||||||
|
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
|
||||||
import net.fabricmc.api.ModInitializer;
|
|
||||||
import net.fabricmc.loader.api.FabricLoader;
|
import net.fabricmc.loader.api.FabricLoader;
|
||||||
|
|
||||||
public class WorldsTogether implements ModInitializer {
|
public class WorldsTogether {
|
||||||
public static boolean SURPRESS_EXPERIMENTAL_DIALOG = false;
|
public static boolean SURPRESS_EXPERIMENTAL_DIALOG = false;
|
||||||
public static boolean FORCE_SERVER_TO_BETTERX_PRESET = false;
|
public static boolean FORCE_SERVER_TO_BETTERX_PRESET = false;
|
||||||
public static final String MOD_ID = "worlds_together";
|
public static final String MOD_ID = "worlds_together";
|
||||||
|
@ -24,14 +23,13 @@ public class WorldsTogether implements ModInitializer {
|
||||||
return FabricLoader.getInstance().isDevelopmentEnvironment();
|
return FabricLoader.getInstance().isDevelopmentEnvironment();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onInitialize() {
|
public static void onInitialize() {
|
||||||
TagManager.ensureStaticallyLoaded();
|
TagManager.ensureStaticallyLoaded();
|
||||||
SurfaceRuleRegistry.ensureStaticallyLoaded();
|
SurfaceRuleRegistry.ensureStaticallyLoaded();
|
||||||
|
|
||||||
|
|
||||||
WorldConfig.registerModCache(WorldsTogether.MOD_ID);
|
WorldConfig.registerModCache(WorldsTogether.MOD_ID);
|
||||||
WorldPresets.ensureStaticallyLoaded();
|
WorldPresets.ensureStaticallyLoaded();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ResourceLocation makeID(String s) {
|
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 org.betterx.worlds.together.worldPreset.client.WorldPresetsClient;
|
||||||
|
|
||||||
import net.fabricmc.api.ClientModInitializer;
|
public class WorldsTogetherClient {
|
||||||
|
public static void onInitializeClient() {
|
||||||
public class WorldsTogetherClient implements ClientModInitializer {
|
|
||||||
public void onInitializeClient() {
|
|
||||||
WorldPresetsClient.setupClientside();
|
WorldPresetsClient.setupClientside();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue