aboutsummaryrefslogtreecommitdiff
path: root/RoughlyEnoughItems-runtime/src/main/java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-11-05 21:19:33 +0800
committershedaniel <daniel@shedaniel.me>2020-11-05 21:19:33 +0800
commit6099b959bc1601023ee9dfb639dff2e1bf2a48ec (patch)
tree1a4cd659a5f6cae5c8dc4c392734f57457c41866 /RoughlyEnoughItems-runtime/src/main/java
parentecf3079ca2622e538cc325fa6063401139881e12 (diff)
downloadRoughlyEnoughItems-6099b959bc1601023ee9dfb639dff2e1bf2a48ec.tar.gz
RoughlyEnoughItems-6099b959bc1601023ee9dfb639dff2e1bf2a48ec.tar.bz2
RoughlyEnoughItems-6099b959bc1601023ee9dfb639dff2e1bf2a48ec.zip
Fix #431
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main/java')
-rw-r--r--RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsState.java22
1 files changed, 14 insertions, 8 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) {