Skip to content

Commit 5af9d83

Browse files
committed
don't draw ghost slot highlight when cheat mode is enabled
1 parent 11ed666 commit 5af9d83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/cleanroommc/modularui/integration/jei/ModularUIJeiPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import mezz.jei.api.IModPlugin;
1212
import mezz.jei.api.IModRegistry;
1313
import mezz.jei.api.JEIPlugin;
14+
import mezz.jei.config.Config;
1415
import mezz.jei.gui.ghost.GhostIngredientDrag;
1516
import mezz.jei.gui.ghost.GhostIngredientDragManager;
1617
import org.jetbrains.annotations.NotNull;
@@ -42,6 +43,7 @@ public static GhostIngredientDragManager getGhostDragManager() {
4243
}
4344

4445
public static boolean hoveringOverIngredient(JeiGhostIngredientSlot<?> ingredientSlot) {
46+
if (Config.isCheatItemsEnabled()) return false;
4547
Object hovered = getHoverdObject();
4648
if (hovered == null) return false;
4749
return ingredientSlot.castGhostIngredientIfValid(hovered) != null;

0 commit comments

Comments
 (0)