aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-10 18:17:56 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-10 18:17:56 +0800
commit40733b679fc63216290259d09c9ee64cc74be5fc (patch)
tree5cd037a63b095ff4db69253cf7e5c082481dc662 /src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
parent28adfa726bcdb27eea4ffa39962c881d5c3d929b (diff)
downloadRoughlyEnoughItems-40733b679fc63216290259d09c9ee64cc74be5fc.tar.gz
RoughlyEnoughItems-40733b679fc63216290259d09c9ee64cc74be5fc.tar.bz2
RoughlyEnoughItems-40733b679fc63216290259d09c9ee64cc74be5fc.zip
single thread recipe sync & fix bug
Fix #105
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
index 4d0ec388a..adc503287 100644
--- a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
+++ b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
@@ -289,7 +289,7 @@ public class RecipeViewingScreen extends Screen {
int displayWidth = selectedCategory.getDisplayWidth(displaySupplier.get());
final Rectangle displayBounds = new Rectangle((int) getBounds().getCenterX() - displayWidth / 2, getBounds().y + 40 + recipeHeight * i + 7 * i, displayWidth, recipeHeight);
widgets.addAll(selectedCategory.setupDisplay(displaySupplier, displayBounds));
- if (supplier.isPresent())
+ if (supplier.isPresent() && supplier.get().get(displayBounds) != null)
widgets.add(new SpeedCraftingButtonWidget(supplier.get().get(displayBounds), supplier.get().getButtonText(), functional, displaySupplier));
}
if (choosePageActivated)