Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
public final class FabricDataGenHelper {
private static final Logger LOGGER = LoggerFactory.getLogger(FabricDataGenHelper.class);

/**
* When enabled the dedicated server startup will be hijacked to run the data generators and then quit.
*/
public static final boolean ENABLED = System.getProperty("fabric-api.datagen") != null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This property doesn't exist on NeoForge. If we're going to add the field back for mods that require internals access, we should at least set it to something realiable. An analogous system prop should exist in neo iirc.


/**
* When enabled providers can enable extra validation, such as ensuring all registry entries have data generated for them.
*/
Expand Down