diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-03-07 03:10:43 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-03-07 03:10:43 +0800 |
| commit | 250159221c07f884252a37daf00c74f41cf69d52 (patch) | |
| tree | 702aef7062c1d7a8ddfcfa686076e55030bb334f /src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java | |
| parent | 12223ae029f3d206ebb19ba0cd134e3c36827315 (diff) | |
| download | RoughlyEnoughItems-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/RecipeViewingScreen.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java | 6 |
1 files changed, 3 insertions, 3 deletions
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<Rectangle, List<Widget>> 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) |
