File tree Expand file tree Collapse file tree
src/main/java/me/kodysimpson/simpapi/menu Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments