aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
index 99ca687d8..9d04b9168 100644
--- a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
+++ b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java
@@ -1,3 +1,8 @@
+/*
+ * Roughly Enough Items by Danielshe.
+ * Licensed under the MIT License.
+ */
+
package me.shedaniel.rei.gui;
import com.google.common.collect.Lists;
@@ -102,6 +107,12 @@ public class VillagerRecipeViewingScreen extends Screen {
selectedRecipeIndex = finalIndex;
VillagerRecipeViewingScreen.this.init();
}
+
+ @Override
+ protected int getTextureId(boolean boolean_1) {
+ enabled = selectedRecipeIndex != finalIndex;
+ return super.getTextureId(boolean_1);
+ }
});
index++;
}