Fixes a minor typo

This commit is contained in:
zontreck 2024-01-09 14:44:44 -07:00
parent 2c12935250
commit c633a1f52e
3 changed files with 3 additions and 6 deletions

View file

@ -75,8 +75,6 @@ public class ChestGUI
public void nextPage()
{
page++;
checkPageButtons();
}
/**
@ -85,8 +83,6 @@ public class ChestGUI
public void prevPage()
{
page--;
checkPageButtons();
}
/*
@ -173,7 +169,7 @@ public class ChestGUI
ItemStack forwardStack = new ItemStack(ModItems.CHESTGUI_FORWARD.get(), 1);
ChestGUIButton nxt = new ChestGUIButton(forwardStack, ()->{
close();
prevPage();
nextPage();
open();
}, new Vector2i(3, 8));

View file

@ -35,6 +35,7 @@ public class ChestGUIMenu extends AbstractContainerMenu
super(ModMenuTypes.CHEST_GUI_MENU.get(), id);
this.gui = gui;
gui.checkPageButtons();
this.player = player;
slots = new ChestGUIReadOnlyStackHandler(gui, player);