Skip to content

Commit 539011d

Browse files
committed
For some reason, this fixes the problem of back() not working. I tested it with multiple menus as well, works fine.
1 parent d69cbbb commit 539011d

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)