From 250159221c07f884252a37daf00c74f41cf69d52 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sat, 7 Mar 2020 03:10:43 +0800 Subject: stuff Signed-off-by: shedaniel --- src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java') diff --git a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java index e6e5bccdc..f058ee63a 100644 --- a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java @@ -458,7 +458,7 @@ public class RecipeViewingScreen extends Screen implements RecipeScreen { if (export.matchesKey(keyCode, scanCode)) { for (Map.Entry> entry : recipeBounds.entrySet()) { Rectangle bounds = entry.getKey(); - if (bounds.contains(PointHelper.fromMouse())) { + if (bounds.contains(PointHelper.ofMouse())) { RecipeDisplayExporter.exportRecipeDisplay(bounds, entry.getValue()); break; } @@ -507,13 +507,13 @@ public class RecipeViewingScreen extends Screen implements RecipeScreen { for (Element listener : children()) if (listener.mouseScrolled(i, j, amount)) return true; - if (getBounds().contains(PointHelper.fromMouse())) { + if (getBounds().contains(PointHelper.ofMouse())) { if (amount > 0 && recipeBack.enabled) recipeBack.onPressed(); else if (amount < 0 && recipeNext.enabled) recipeNext.onPressed(); } - if ((new Rectangle(bounds.x, bounds.y - 28, bounds.width, 28)).contains(PointHelper.fromMouse())) { + if ((new Rectangle(bounds.x, bounds.y - 28, bounds.width, 28)).contains(PointHelper.ofMouse())) { if (amount > 0 && categoryBack.enabled) categoryBack.onPressed(); else if (amount < 0 && categoryNext.enabled) -- cgit