Skip to content

Commit c90956d

Browse files
committed
4.1.7
1 parent 6acb93a commit c90956d

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>me.kodysimpson</groupId>
88
<artifactId>SimpAPI</artifactId>
9-
<version>4.1.6</version>
9+
<version>4.1.7</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SimpAPI</name>

src/main/java/me/kodysimpson/simpapi/menu/Menu.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public void open() {
5656

5757
//open the inventory for the player
5858
playerMenuUtility.getOwner().openInventory(inventory);
59+
playerMenuUtility.pushMenu(this);
5960
}
6061

6162
public void back() throws MenuManagerException, MenuManagerNotSetupException {

src/main/java/me/kodysimpson/simpapi/menu/PlayerMenuUtility.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,9 @@ public Menu lastMenu(){
7979
return this.history.pop();
8080
}
8181

82+
public void pushMenu(Menu menu){
83+
this.history.push(menu);
84+
}
85+
8286
}
8387

0 commit comments

Comments
 (0)