Fixes a minor typo
This commit is contained in:
parent
2c12935250
commit
c633a1f52e
3 changed files with 3 additions and 6 deletions
|
@ -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.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=GPLv3
|
mod_license=GPLv3
|
||||||
# The mod version. See https://semver.org/
|
# 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.
|
# 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.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|
|
@ -75,8 +75,6 @@ public class ChestGUI
|
||||||
public void nextPage()
|
public void nextPage()
|
||||||
{
|
{
|
||||||
page++;
|
page++;
|
||||||
|
|
||||||
checkPageButtons();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -85,8 +83,6 @@ public class ChestGUI
|
||||||
public void prevPage()
|
public void prevPage()
|
||||||
{
|
{
|
||||||
page--;
|
page--;
|
||||||
|
|
||||||
checkPageButtons();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -173,7 +169,7 @@ public class ChestGUI
|
||||||
ItemStack forwardStack = new ItemStack(ModItems.CHESTGUI_FORWARD.get(), 1);
|
ItemStack forwardStack = new ItemStack(ModItems.CHESTGUI_FORWARD.get(), 1);
|
||||||
ChestGUIButton nxt = new ChestGUIButton(forwardStack, ()->{
|
ChestGUIButton nxt = new ChestGUIButton(forwardStack, ()->{
|
||||||
close();
|
close();
|
||||||
prevPage();
|
nextPage();
|
||||||
open();
|
open();
|
||||||
}, new Vector2i(3, 8));
|
}, new Vector2i(3, 8));
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class ChestGUIMenu extends AbstractContainerMenu
|
||||||
super(ModMenuTypes.CHEST_GUI_MENU.get(), id);
|
super(ModMenuTypes.CHEST_GUI_MENU.get(), id);
|
||||||
|
|
||||||
this.gui = gui;
|
this.gui = gui;
|
||||||
|
gui.checkPageButtons();
|
||||||
this.player = player;
|
this.player = player;
|
||||||
|
|
||||||
slots = new ChestGUIReadOnlyStackHandler(gui, player);
|
slots = new ChestGUIReadOnlyStackHandler(gui, player);
|
||||||
|
|
Reference in a new issue