rename: manifest_version -> format_version
This commit is contained in:
parent
1b4b1d0d93
commit
2e64ad2289
|
@ -1,5 +1,5 @@
|
|||
[frog]
|
||||
manifest_version = "1.0.0"
|
||||
format_version = "1.0.0"
|
||||
|
||||
[frog.mod]
|
||||
id = "example_mod"
|
||||
|
|
|
@ -44,17 +44,17 @@ public class ModPropertiesReader {
|
|||
}
|
||||
|
||||
private static ModProperties readProperties(UnmodifiableConfig config) {
|
||||
String manifestVer = config.get("frog.manifest_version");
|
||||
String manifestVer = config.get("frog.format_version");
|
||||
|
||||
try {
|
||||
return ManifestVersion.get(manifestVer).parse(config);
|
||||
return FormatVersion.get(manifestVer).parse(config);
|
||||
} catch (IOException e) {
|
||||
throw new UncheckedIOException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@AllArgsConstructor
|
||||
private enum ManifestVersion {
|
||||
private enum FormatVersion {
|
||||
V1_0_0("1.0.0", config -> {
|
||||
String id = config.get("frog.mod.id");
|
||||
String name = config.get("frog.mod.name");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[frog]
|
||||
manifest_version = "1.0.0"
|
||||
format_version = "1.0.0"
|
||||
|
||||
[frog.mod]
|
||||
id = "frogloader"
|
||||
|
|
Loading…
Reference in a new issue