Fixed menu inventory registration memory leak

This commit is contained in:
Auxilor
2021-09-01 15:35:33 +01:00
parent 7c9d226bc3
commit 384657f1dc

View File

@@ -63,6 +63,7 @@ class EcoMenu(
fun handleClose(event: InventoryCloseEvent) {
onClose.handle(event, this)
MenuHandler.unregisterMenu(event.inventory)
}
override fun getRows(): Int {