Skip to content

Commit

Permalink
fix: screen position
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Jul 23, 2024
1 parent d2cc31f commit 2e922bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class FileList extends ObjectSelectionList<FileList.Entry> {
private final Button selectButton;

public FileList(@NotNull Minecraft minecraft) {
super(minecraft, FileDialogScreen.this.width, FileDialogScreen.this.height, 52, FileDialogScreen.this.height - 50/*, 18*/);
super(minecraft, /*width*/FileDialogScreen.this.width, /*FileDialogScreen.this.height, */ /*height*/FileDialogScreen.this.height - 50, /*y*/52, 18);

if (FileUtil.isRoot(options.getInitialDirectory()) && FileUtil.hasMultipleRoots()) {
for (File root : File.listRoots()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public void render(@NotNull GuiGraphics guiGraphics , int i, int i2, float f) {

class ModsList extends ObjectSelectionList<ModsList.Entry> {
public ModsList(@NotNull Minecraft minecraft) {
super(minecraft/*, ModListScreen.this.width / 5*/, ModListScreen.this.height, 32, ModListScreen.this.height - 87 + 4, 18);
super(minecraft, /*width*/ModListScreen.this.width / 5, /*ModListScreen.this.height, */ /*height*/ModListScreen.this.height - 87 + 4, /*y*/32, /*itemHeight*/18);

for(BlueberryMod mod : Blueberry.getModLoader().getLoadedMods()) {
Entry entry = new Entry(mod);
Expand Down

0 comments on commit 2e922bd

Please sign in to comment.