shedaniel 5 жил өмнө
parent
commit
538e0b0104

+ 1 - 1
gradle.properties

@@ -1,4 +1,4 @@
-mod_version=3.2.20
+mod_version=3.2.21
 minecraft_version=1.15
 yarn_version=1.15+build.1
 fabricloader_version=0.7.2+build.174

+ 1 - 2
src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java

@@ -347,7 +347,7 @@ public class EntryListWidget extends WidgetWithBounds {
             int width = innerBounds.width / 18;
             int pageHeight = innerBounds.height / 18;
             int sizeForFavorites = getScrollNumberForFavorites();
-            int slotsToPrepare = allStacks.size() + sizeForFavorites * 3;
+            int slotsToPrepare = allStacks.size() * 2 + sizeForFavorites * 2;
             int currentX = 0;
             int currentY = 0;
             List<EntryListEntry> entries = Lists.newLinkedList();
@@ -355,7 +355,6 @@ public class EntryListWidget extends WidgetWithBounds {
                 int xPos = currentX * 18 + innerBounds.x;
                 int yPos = currentY * 18 + innerBounds.y;
                 entries.add((EntryListEntry) new EntryListEntry(xPos, yPos).noBackground());
-                if (!notSteppingOnExclusionZones(xPos, yPos, innerBounds)) slotsToPrepare += 2;
                 currentX++;
                 if (currentX >= width) {
                     currentX = 0;