Skip to content

Commit

Permalink
Fixed portal screen scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Jun 19, 2022
1 parent b24fbf9 commit 42bcc53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modGroup=com.buuz135.portality.Portality
api_version=3.3.4
api_version=3.3.5
modBaseName=portality
forgeVersion=1.12.2-14.23.4.2759
mcpVersion=stable_39
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/buuz135/portality/gui/PortalsScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private void addPortalButtons() {
tempInformations.sort((o1, o2) -> Boolean.compare(o2.isPrivate(), o1.isPrivate()));
if (!textField.getValue().isEmpty())
tempInformations.removeIf(portalInformation -> !portalInformation.getName().toLowerCase().contains(textField.getValue().toLowerCase()));
this.children().removeIf(guiButton -> portalButtons.contains(guiButton));
this.portalButtons.forEach(this::removeWidget);
this.portalButtons.clear();
this.visiblePortalInformations = tempInformations.size();
int pointer = (int) (((tempInformations.size() - 7) * scrolling));
Expand Down

0 comments on commit 42bcc53

Please sign in to comment.