aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-03-07 03:10:43 +0800
committershedaniel <daniel@shedaniel.me>2020-03-07 03:10:43 +0800
commit250159221c07f884252a37daf00c74f41cf69d52 (patch)
tree702aef7062c1d7a8ddfcfa686076e55030bb334f /src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
parent12223ae029f3d206ebb19ba0cd134e3c36827315 (diff)
downloadRoughlyEnoughItems-250159221c07f884252a37daf00c74f41cf69d52.tar.gz
RoughlyEnoughItems-250159221c07f884252a37daf00c74f41cf69d52.tar.bz2
RoughlyEnoughItems-250159221c07f884252a37daf00c74f41cf69d52.zip
stuff
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
index 620b1113f..e333ec131 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
@@ -221,7 +221,7 @@ public class EntryWidget extends WidgetWithBounds {
else
tooltip.getText().addAll(Arrays.asList(I18n.translate("text.rei.favorites_tooltip", name).split("\n")));
}
- ScreenHelper.getLastOverlay().addTooltip(tooltip);
+ REIHelper.getInstance().addTooltip(tooltip);
}
}
@@ -267,8 +267,8 @@ public class EntryWidget extends WidgetWithBounds {
public boolean keyPressed(int int_1, int int_2, int int_3) {
if (!interactable)
return false;
- if (containsMouse(PointHelper.fromMouse())) {
- if (interactableFavorites && ConfigObject.getInstance().isFavoritesEnabled() && containsMouse(PointHelper.fromMouse()) && !getCurrentEntry().isEmpty()) {
+ if (containsMouse(PointHelper.ofMouse())) {
+ if (interactableFavorites && ConfigObject.getInstance().isFavoritesEnabled() && containsMouse(PointHelper.ofMouse()) && !getCurrentEntry().isEmpty()) {
ModifierKeyCode keyCode = ConfigObject.getInstance().getFavoriteKeyCode();
EntryStack entry = getCurrentEntry().copy();
entry.setAmount(127);