File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/java/com/cleanroommc/modularui/integration/jei Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 1111import mezz .jei .api .IModPlugin ;
1212import mezz .jei .api .IModRegistry ;
1313import mezz .jei .api .JEIPlugin ;
14+ import mezz .jei .config .Config ;
1415import mezz .jei .gui .ghost .GhostIngredientDrag ;
1516import mezz .jei .gui .ghost .GhostIngredientDragManager ;
1617import 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 ;
You can’t perform that action at this time.
0 commit comments