mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-10 10:10:22 +01:00
clear it on close/open just in case
This commit is contained in:
parent
422325f07a
commit
569f317c7a
@ -99,6 +99,16 @@ public class AuctionMenu extends DynamicInventoryBuilder {
|
||||
this.menus.clear();
|
||||
}, this.gui);
|
||||
|
||||
this.gui.setOpenGuiAction(event -> {
|
||||
// Clear again, just in case.
|
||||
this.menus.clear();
|
||||
});
|
||||
|
||||
this.gui.setCloseGuiAction(event -> {
|
||||
// forget the data, so no memory leak!
|
||||
this.menus.clear();
|
||||
});
|
||||
|
||||
this.gui.open(this.player);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user