diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-11-05 21:19:33 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-11-05 21:19:33 +0800 |
| commit | 6099b959bc1601023ee9dfb639dff2e1bf2a48ec (patch) | |
| tree | 1a4cd659a5f6cae5c8dc4c392734f57457c41866 | |
| parent | ecf3079ca2622e538cc325fa6063401139881e12 (diff) | |
| download | RoughlyEnoughItems-6099b959bc1601023ee9dfb639dff2e1bf2a48ec.tar.gz RoughlyEnoughItems-6099b959bc1601023ee9dfb639dff2e1bf2a48ec.tar.bz2 RoughlyEnoughItems-6099b959bc1601023ee9dfb639dff2e1bf2a48ec.zip | |
Fix #431
Signed-off-by: shedaniel <daniel@shedaniel.me>
| -rw-r--r-- | RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsState.java | 22 | ||||
| -rw-r--r-- | gradle.properties | 2 |
2 files changed, 15 insertions, 9 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsState.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsState.java index 398ea52ca..15430e858 100644 --- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsState.java +++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsState.java @@ -58,14 +58,20 @@ public class RoughlyEnoughItemsState { } public static void checkRequiredFabricModules() { - ImmutableSet<String> requiredModules = ImmutableSet.<String>builder() - .add("fabric-api-base") - .add("fabric-resource-loader-v0") - .add("fabric-networking-v0") - .add("fabric-lifecycle-events-v1") - .add("fabric-lifecycle-events-v1") - .add("fabric-rendering-fluids-v1") - .build(); + ImmutableSet<String> requiredModules = FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT ? + ImmutableSet.<String>builder() + .add("fabric-api-base") + .add("fabric-resource-loader-v0") + .add("fabric-networking-v0") + .add("fabric-lifecycle-events-v1") + .add("fabric-rendering-fluids-v1") + .build() : + ImmutableSet.<String>builder() + .add("fabric-api-base") + .add("fabric-resource-loader-v0") + .add("fabric-networking-v0") + .add("fabric-lifecycle-events-v1") + .build(); for (String module : requiredModules) { boolean moduleLoaded = FabricLoader.getInstance().isModLoaded(module); if (!moduleLoaded) { diff --git a/gradle.properties b/gradle.properties index 1388670e6..b4f260e34 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ org.gradle.jvmargs=-Xmx3G -mod_version=5.8.0 +mod_version=5.8.1 supported_version=1.16.2/3/4 minecraft_version=1.16.4 fabricloader_version=0.10.6+build.214 |
