mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Made bookmark buttons only open when the page isn't already open
This commit is contained in:
parent
ecafafe57e
commit
6648fb29e2
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ public class BookmarkButton extends GuiButton{
|
|||
if(GuiScreen.isShiftKeyDown()){
|
||||
this.assignedPage = null;
|
||||
}
|
||||
else{
|
||||
else if(!(this.booklet instanceof GuiPage) || ((GuiPage)this.booklet).pages[0] != this.assignedPage){
|
||||
GuiPage gui = BookletUtils.createPageGui(this.booklet.previousScreen, this.booklet, this.assignedPage);
|
||||
Minecraft.getMinecraft().displayGuiScreen(gui);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue