diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-08-18 17:02:08 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-08-18 17:02:08 +0800 |
| commit | b6f36732c933c6d406d730e11cd3b7ed390b95ae (patch) | |
| tree | ea7f7ee385a313c45ba2e5ef6371b4f2eaeea322 /src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | |
| parent | b65de8ed7fe045df451130e3c790613c4f002e2c (diff) | |
| download | RoughlyEnoughItems-b6f36732c933c6d406d730e11cd3b7ed390b95ae.tar.gz RoughlyEnoughItems-b6f36732c933c6d406d730e11cd3b7ed390b95ae.tar.bz2 RoughlyEnoughItems-b6f36732c933c6d406d730e11cd3b7ed390b95ae.zip | |
Speed Craft -> Auto Craft
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java index 8face20de..a2b0e86d8 100644 --- a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java @@ -131,7 +131,7 @@ public class VillagerRecipeViewingScreen extends Screen { Rectangle recipeBounds = new Rectangle(bounds.x + 100 + (guiWidth - 100) / 2 - category.getDisplayWidth(display) / 2, bounds.y + bounds.height / 2 - category.getDisplayHeight() / 2, category.getDisplayWidth(display), category.getDisplayHeight()); List<Widget> setupDisplay = category.setupDisplay(() -> display, recipeBounds); this.widgets.addAll(setupDisplay); - Optional<ButtonAreaSupplier> supplier = RecipeHelper.getInstance().getSpeedCraftButtonArea(category); + Optional<ButtonAreaSupplier> supplier = RecipeHelper.getInstance().getAutoCraftButtonArea(category); if (supplier.isPresent() && supplier.get().get(recipeBounds) != null) this.widgets.add(new AutoCraftingButtonWidget(recipeBounds, supplier.get().get(recipeBounds), supplier.get().getButtonText(), () -> display, setupDisplay, category)); |
