aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-31 15:32:33 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-31 15:32:33 +0800
commit2f95b698dee3368666cefe8890a015eb098dd77b (patch)
tree994981d645051f5360ea29dc0d7701a83cd1858a /src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
parent40d345b6b0f0bea1e4313ad9cdb789762e160f8d (diff)
downloadRoughlyEnoughItems-2.2.0.15.tar.gz
RoughlyEnoughItems-2.2.0.15.tar.bz2
RoughlyEnoughItems-2.2.0.15.zip
Update to v2.2.0.15 & Fix Optifinev2.2.0.15
Fix #16
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
index ea9a895b2..3576471cb 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/TabWidget.java
@@ -22,12 +22,12 @@ public class TabWidget extends Gui implements HighlightableWidget {
private boolean shown = false, selected = false;
private ItemStack item;
private int id;
- private RecipeViewingWidget recipeViewingWidget;
+ private RecipeViewingWidgetGui recipeViewingWidget;
private String categoryName;
private Rectangle bounds;
private ItemRenderer itemRenderer;
- public TabWidget(int id, RecipeViewingWidget recipeViewingWidget, Rectangle bounds) {
+ public TabWidget(int id, RecipeViewingWidgetGui recipeViewingWidget, Rectangle bounds) {
this.id = id;
this.recipeViewingWidget = recipeViewingWidget;
this.bounds = bounds;
@@ -90,7 +90,7 @@ public class TabWidget extends Gui implements HighlightableWidget {
}
private void drawTooltip() {
- GuiHelper.getOverlay(recipeViewingWidget.getParent().getContainerGui()).addTooltip(new QueuedTooltip(ClientHelper.getMouseLocation(), Arrays.asList(categoryName)));
+ GuiHelper.getLastOverlay().addTooltip(new QueuedTooltip(ClientHelper.getMouseLocation(), Arrays.asList(categoryName)));
}
@Override