aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2019-12-20 17:31:30 +0800
committershedaniel <daniel@shedaniel.me>2019-12-20 17:31:30 +0800
commitb2d0af7a9fb0d16f14b294802f6718ac315d0de8 (patch)
tree239aeb17bc098158bf2e63737253247ba3e687fe /src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
parente0a4a4692f8cb465c32ef589e15cea83d2432f99 (diff)
downloadRoughlyEnoughItems-b2d0af7a9fb0d16f14b294802f6718ac315d0de8.tar.gz
RoughlyEnoughItems-b2d0af7a9fb0d16f14b294802f6718ac315d0de8.tar.bz2
RoughlyEnoughItems-b2d0af7a9fb0d16f14b294802f6718ac315d0de8.zip
3.2.27
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
index f2309588b..fee376855 100644
--- a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
+++ b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
@@ -47,8 +47,7 @@ public class RecipeViewingScreen extends Screen {
public boolean choosePageActivated;
public RecipeChoosePageWidget recipeChoosePageWidget;
private Rectangle bounds;
- @Nullable
- private CategoryBaseWidget workingStationsBaseWidget;
+ @Nullable private CategoryBaseWidget workingStationsBaseWidget;
private RecipeCategory<RecipeDisplay> selectedCategory;
private ButtonWidget recipeBack, recipeNext, categoryBack, categoryNext;
@@ -110,7 +109,8 @@ public class RecipeViewingScreen extends Screen {
if (int_1 == 259) {
if (ScreenHelper.hasLastRecipeScreen())
minecraft.openScreen(ScreenHelper.getLastRecipeScreen());
- else minecraft.openScreen(ScreenHelper.getLastContainerScreen());
+ else
+ minecraft.openScreen(ScreenHelper.getLastContainerScreen());
return true;
}
return super.keyPressed(int_1, int_2, int_3);
@@ -300,7 +300,7 @@ public class RecipeViewingScreen extends Screen {
recipeChoosePageWidget = new RecipeChoosePageWidget(this, page, getTotalPages(selectedCategory));
else
recipeChoosePageWidget = null;
-
+
workingStationsBaseWidget = null;
List<List<EntryStack>> workingStations = RecipeHelper.getInstance().getWorkingStations(selectedCategory.getIdentifier());
if (!workingStations.isEmpty()) {