We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11ed666 commit 5af9d83Copy full SHA for 5af9d83
1 file changed
src/main/java/com/cleanroommc/modularui/integration/jei/ModularUIJeiPlugin.java
@@ -11,6 +11,7 @@
11
import mezz.jei.api.IModPlugin;
12
import mezz.jei.api.IModRegistry;
13
import mezz.jei.api.JEIPlugin;
14
+import mezz.jei.config.Config;
15
import mezz.jei.gui.ghost.GhostIngredientDrag;
16
import mezz.jei.gui.ghost.GhostIngredientDragManager;
17
import org.jetbrains.annotations.NotNull;
@@ -42,6 +43,7 @@ public static GhostIngredientDragManager getGhostDragManager() {
42
43
}
44
45
public static boolean hoveringOverIngredient(JeiGhostIngredientSlot<?> ingredientSlot) {
46
+ if (Config.isCheatItemsEnabled()) return false;
47
Object hovered = getHoverdObject();
48
if (hovered == null) return false;
49
return ingredientSlot.castGhostIngredientIfValid(hovered) != null;
0 commit comments