Skip to content

Commit a11c21d

Browse files
committed
fixed curios not being optional, and made patchouli a mods.toml dep
closes #354
1 parent b72b1c1 commit a11c21d

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

Diff for: build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ tasks.withType(ProcessResources).configureEach {
116116
loader_version_range: loader_version_range,
117117
mod_id : mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version,
118118
mod_authors : mod_authors, mod_description: mod_description,
119+
patchouli_version : patchouli_version
119120
]
120121
inputs.properties replaceProperties
121122

@@ -145,4 +146,4 @@ publishing {
145146

146147
tasks.withType(JavaCompile).configureEach {
147148
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
148-
}
149+
}

Diff for: gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ loader_version_range=[2,)
2121

2222
jei_version=17.3.0.48
2323
curios_version=7.2.0+1.20.4
24-
patchouli_version=1.20.4-85-NEOFORGE-SNAPSHOT
24+
patchouli_version=1.20.4-85-NEOFORGE
2525

2626
## Mod Properties
2727
# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}

Diff for: src/main/java/de/ellpeck/naturesaura/compat/Compat.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616

1717
public final class Compat {
1818

19+
@SuppressWarnings("Convert2MethodRef") // bleh classloading compat issues
1920
private static final Map<String, Supplier<ICompat>> MODULE_TYPES = ImmutableMap.<String, Supplier<ICompat>>builder()
20-
.put("patchouli", PatchouliCompat::new)
21-
.put("curios", CuriosCompat::new)
21+
.put("patchouli", () -> new PatchouliCompat())
22+
.put("curios", () -> new CuriosCompat())
2223
//.put("enchantability", EnchantibilityCompat::new)
2324
.build();
2425
private static final Map<String, ICompat> MODULES = new HashMap<>();

Diff for: src/main/resources/META-INF/mods.toml

+7
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,10 @@ side = "BOTH"
7272
# stop your mod loading on the server for example.
7373
#[features.${mod_id}]
7474
#openGLVersion="[3.2,)"
75+
76+
[[dependencies.${mod_id}]]
77+
modId="patchouli"
78+
type = "required"
79+
versionRange="[${patchouli_version},)"
80+
ordering="NONE"
81+
side="BOTH"

0 commit comments

Comments
 (0)