Skip to content

Commit

Permalink
Close #301 When viewing a recipe, disable cheating items
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Sep 11, 2016
1 parent 92348d7 commit 9e6c480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mezz/jei/input/InputHandler.java
Expand Up @@ -130,7 +130,7 @@ private boolean handleMouseClickedFocus(int mouseButton, @Nonnull Focus<?> focus
}
}

if (Config.isCheatItemsEnabled() && focus.allowsCheating()) {
if (Config.isCheatItemsEnabled() && focus.allowsCheating() && !recipesGui.isOpen()) {
Object focusValue = focus.getValue();
if (focusValue instanceof ItemStack) {
ItemStack itemStack = (ItemStack) focusValue;
Expand Down

0 comments on commit 9e6c480

Please sign in to comment.