diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-08-04 22:11:07 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-08-04 22:11:07 +0800 |
| commit | 721ea24a226c2dca5cfef4b3f638d251547df0b8 (patch) | |
| tree | 76c9d8c2790db8730c95af2d250a4b062df1215a /src/main/java/me/shedaniel/rei/client/BaseBoundsHandlerImpl.java | |
| parent | 82225991887f55047d161a18e6fa19f798c0ba67 (diff) | |
| download | RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.tar.gz RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.tar.bz2 RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.zip | |
yes thank you
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/BaseBoundsHandlerImpl.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/client/BaseBoundsHandlerImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/BaseBoundsHandlerImpl.java b/src/main/java/me/shedaniel/rei/client/BaseBoundsHandlerImpl.java index e66bc3279..dfef934e7 100644 --- a/src/main/java/me/shedaniel/rei/client/BaseBoundsHandlerImpl.java +++ b/src/main/java/me/shedaniel/rei/client/BaseBoundsHandlerImpl.java @@ -55,7 +55,7 @@ public class BaseBoundsHandlerImpl implements BaseBoundsHandler { @Override public ActionResult isInZone(boolean isOnRightSide, double mouseX, double mouseY) { - for(Rectangle zone : getCurrentExclusionZones(MinecraftClient.getInstance().currentScreen.getClass(), isOnRightSide)) + for (Rectangle zone : getCurrentExclusionZones(MinecraftClient.getInstance().currentScreen.getClass(), isOnRightSide)) if (zone.contains(mouseX, mouseY)) return ActionResult.FAIL; return ActionResult.PASS; @@ -81,7 +81,7 @@ public class BaseBoundsHandlerImpl implements BaseBoundsHandler { @Override public ActionResult canItemSlotWidgetFit(boolean isOnRightSide, int left, int top, Screen screen, Rectangle fullBounds) { List<Rectangle> currentExclusionZones = getCurrentExclusionZones(MinecraftClient.getInstance().currentScreen.getClass(), isOnRightSide); - for(Rectangle currentExclusionZone : currentExclusionZones) + for (Rectangle currentExclusionZone : currentExclusionZones) if (left + 18 >= currentExclusionZone.x && top + 18 >= currentExclusionZone.y && left <= currentExclusionZone.x + currentExclusionZone.width && top <= currentExclusionZone.y + currentExclusionZone.height) return ActionResult.FAIL; return ActionResult.PASS; @@ -102,7 +102,7 @@ public class BaseBoundsHandlerImpl implements BaseBoundsHandler { public long getLongFromAreas(Rectangle rectangle, List<Rectangle> exclusionZones) { long a = RECTANGLE_LONG_FUNCTION.apply(rectangle); - for(Rectangle exclusionZone : exclusionZones) + for (Rectangle exclusionZone : exclusionZones) a -= RECTANGLE_LONG_FUNCTION.apply(exclusionZone); return a; } |
