diff options
| author | cpw <cpw+github@weeksfamily.ca> | 2023-06-28 22:27:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-28 22:27:59 -0400 |
| commit | e6da5218b5abef213fc38ea87e9b8bd691a9a771 (patch) | |
| tree | c72b38d4271fdc8456f307a9ca1f1052a4cc19e2 | |
| parent | 6d6d2a37322c9918b30e0d114e8dff2d8fb111a5 (diff) | |
Try and be a bit nicer about handling bad [feature] definitions (#9606)
* Try and be a bit nicer about handling bad [feature] definitions - they're single square bracket defined and require strings for feature bound values.
* Some more tweaks to the feature system to output useful and well formatted error messages when bounds fail. Requires SPI 7.0.1 and the language string "fml.modloading.feature.missing" has changed.
* Use immutable lists where possible and generally tidy things a bit
| -rw-r--r-- | src/main/resources/META-INF/mods.toml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 3f5f56d..95e8668 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -62,3 +62,9 @@ description='''${mod_description}''' versionRange="${minecraft_version_range}" ordering="NONE" side="BOTH" + +# Features are specific properties of the game environment, that you may want to declare you require. This example declares +# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't +# stop your mod loading on the server for example. +#[features.${mod_id}] +#openGLVersion="[3.2,)"
\ No newline at end of file |
