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

@ -53,7 +53,7 @@ mod_name=Zontreck Library Mod
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=GPLv3
# The mod version. See https://semver.org/
mod_version=1.10.010924.1421
mod_version=1.10.010924.1444
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

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);