We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad35fc5 commit 40ec3f1Copy full SHA for 40ec3f1
fabric/src/main/java/org/embeddedt/modernfix/fabric/modfixs/DecorativeBlocksFix.java
@@ -1,5 +1,6 @@
1
package org.embeddedt.modernfix.fabric.modfixs;
2
3
+import net.fabricmc.loader.api.FabricLoader;
4
import net.minecraft.client.KeyMapping;
5
import org.embeddedt.modernfix.util.CommonModUtil;
6
@@ -8,6 +9,8 @@
8
9
10
public class DecorativeBlocksFix {
11
public static void fix() {
12
+ if(!FabricLoader.getInstance().isModLoaded("decorative_blocks"))
13
+ return;
14
CommonModUtil.runWithoutCrash(() -> {
15
Class<?> decorativeBlocksSetup = Class.forName("lilypuree.decorative_blocks.client.ClientSetup");
16
Field keybindField = decorativeBlocksSetup.getDeclaredField("switchItemState");
0 commit comments