From aa916b6d14d62e062fec49c378e0f62b254c83ae Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 12 May 2019 00:42:09 +0800 Subject: Extra button texture Close #92 --- src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java') diff --git a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java index 99ca687d8..d57c9a53b 100644 --- a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java @@ -102,6 +102,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++; } -- cgit From 7e1e39d8453b0a5b5c7c1045fc5e6bb428b840d8 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 12 May 2019 01:34:33 +0800 Subject: License Heading --- src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java') diff --git a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java index d57c9a53b..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; -- cgit