Skip to content

Commit

Permalink
Bump up the LDLib to fix XEI compat + fix pattern preview widget (#1987)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yefancy authored Sep 20, 2024
1 parent 05f5dd1 commit f4a01cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dependencyResolutionManagement {
def vineFlowerVersion = "1.+"
def macheteVersion = "1.+"
def configurationVersion = "2.2.0"
def ldLibVersion = "1.0.27.b"
def ldLibVersion = "1.0.28.a"
def mixinextrasVersion = "0.2.0"
def shimmerVersion = "0.2.4"
def lombokPluginVersion = "8.7.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ protected PatternPreviewWidget(MultiblockMachineDefinition controllerDefinition)
.setXBarStyle(GuiTextures.SLIDER_BACKGROUND, GuiTextures.BUTTON)
.setScrollable(true)
.setDraggable(true);
scrollableWidgetGroup.setScrollWheelDirection(DraggableScrollableWidgetGroup.ScrollWheelDirection.HORIZONTAL);
scrollableWidgetGroup.setScrollYOffset(0);
addWidget(scrollableWidgetGroup);

Expand Down Expand Up @@ -181,7 +182,7 @@ public void setPage(int index) {
setupScene(pattern);
if (slotWidgets != null) {
for (SlotWidget slotWidget : slotWidgets) {
removeWidget(slotWidget);
scrollableWidgetGroup.removeWidget(slotWidget);
}
}
slotWidgets = new SlotWidget[Math.min(pattern.parts.size(), 18)];
Expand Down

0 comments on commit f4a01cb

Please sign in to comment.