Skip to content

Commit 50b13f5

Browse files
authored
Merge pull request #21 from maytees/master
back() fix works properly with this line for some reason.
2 parents d69cbbb + 539011d commit 50b13f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public <T> T getData(Enum identifier, Class<T> classRef){
7676
* @return Get the previous menu that was opened for the player
7777
*/
7878
public Menu lastMenu(){
79+
this.history.pop(); //Makes back() work for some reason
7980
return this.history.pop();
8081
}
8182

0 commit comments

Comments
 (0)