diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-08-04 23:53:04 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-08-04 23:53:04 +0800 |
| commit | 1ce5ca77bc2f98df6cc370c96547c2c39c1fd897 (patch) | |
| tree | 3d4e86a09eb58f5669ce004628addf72136b9ac7 /RoughlyEnoughItems-runtime/src/main/java | |
| parent | f4a31a563e7fae66ae63179ea0926c2c15e494c1 (diff) | |
| download | RoughlyEnoughItems-1ce5ca77bc2f98df6cc370c96547c2c39c1fd897.tar.gz RoughlyEnoughItems-1ce5ca77bc2f98df6cc370c96547c2c39c1fd897.tar.bz2 RoughlyEnoughItems-1ce5ca77bc2f98df6cc370c96547c2c39c1fd897.zip | |
limit the size
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main/java')
| -rw-r--r-- | RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java index fd286c539..62fb8328e 100644 --- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java +++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java @@ -227,7 +227,7 @@ public class RecipeViewingScreen extends Screen implements RecipeScreen { this.largestWidth = width - 100; this.largestHeight = Math.max(height - 34 - 30, 100); int maxWidthDisplay = CollectionUtils.mapAndMax(getCurrentDisplayed(), selectedCategory::getDisplayWidth, Comparator.naturalOrder()).orElse(150); - this.guiWidth = Math.max(maxWidthDisplay + 40, 0); + this.guiWidth = Math.max(maxWidthDisplay + 40, 190); this.guiHeight = MathHelper.floor(MathHelper.clamp((double) (selectedCategory.getDisplayHeight() + 4) * (getRecipesPerPage() + 1) + 36, 100, largestHeight)); if (!ConfigObject.getInstance().shouldResizeDynamically()) this.guiHeight = largestHeight; this.tabsPerPage = Math.max(5, MathHelper.floor((guiWidth - 20d) / tabSize)); |
