Repaired BCLibDatagen
This commit is contained in:
parent
9b84ba6b29
commit
3e5a4b0f0c
1 changed files with 4 additions and 4 deletions
|
@ -15,24 +15,24 @@ import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint;
|
|||
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator;
|
||||
|
||||
public class BCLibDatagen implements DataGeneratorEntrypoint {
|
||||
public static final boolean ADD_TESTS = false;
|
||||
public static final boolean ADD_TESTS = true;
|
||||
|
||||
@Override
|
||||
public void onInitializeDataGenerator(FabricDataGenerator dataGenerator) {
|
||||
BCLib.LOGGER.info("Bootstrap onInitializeDataGenerator");
|
||||
final FabricDataGenerator.Pack pack = dataGenerator.createPack();
|
||||
|
||||
NullscapeBiomes.ensureStaticallyLoaded();
|
||||
if (ADD_TESTS) {
|
||||
TestBiomes.ensureStaticallyLoaded();
|
||||
|
||||
pack.addProvider(TestWorldgenProvider::new);
|
||||
pack.addProvider(TestBiomes::new);
|
||||
RecipeDataProvider.createTestRecipes();
|
||||
} else {
|
||||
pack.addProvider(NullscapeBiomes::new);
|
||||
}
|
||||
|
||||
NullscapeBiomes.ensureStaticallyLoaded();
|
||||
pack.addProvider(NullscapeBiomes::new);
|
||||
|
||||
pack.addProvider(RecipeDataProvider::new);
|
||||
pack.addProvider(WorldPresetDataProvider::new);
|
||||
pack.addProvider(BCLibRegistriesDataProvider::new);
|
||||
|
|
Loading…
Reference in a new issue